Ejemplo n.º 1
0
    def test_last_run_completed(self):        
        repo = RepoTracker()

        temp_last_run = datetime.utcnow()
        repo.update_last_run_completed("test-last-run",temp_last_run)
        fetched_last_run = repo.last_run_completed("test-last-run")
        self.assertEqual(temp_last_run, fetched_last_run)
Ejemplo n.º 2
0
    def test_last_run_completed(self):
        repo = RepoTracker()

        temp_last_run = datetime.utcnow()
        repo.update_last_run_completed("test-last-run", temp_last_run)
        fetched_last_run = repo.last_run_completed("test-last-run")
        self.assertEqual(temp_last_run, fetched_last_run)
Ejemplo n.º 3
0
    def test_last_identifier(self):
        repo = RepoTracker()

        temp_identifier = id_generator()
        repo.update_identifier("test-identifier", temp_identifier)
        fetched_identifier = repo.last_identifier("test-identifier")
        self.assertEqual(temp_identifier, fetched_identifier)
Ejemplo n.º 4
0
    def test_last_identifier(self):
        repo = RepoTracker()

        temp_identifier = id_generator()
        repo.update_identifier("test-identifier", temp_identifier)
        fetched_identifier = repo.last_identifier("test-identifier")
        self.assertEqual(temp_identifier, fetched_identifier)