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)
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)
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)