Exemple #1
0
 def test_get_first_and_last_snapshot(self):
     repo_ss = self.repositories[self.repo_names[0]]
     self.fill_repositories_with_commits()
     rss = Storage_stats_reporter(self.repo_names, self.repositories)
     all_comm = [c for c in repo_ss]
     first_comm = all_comm[0].tag
     last_comm = all_comm[-1].tag
     first, last = rss._get_first_and_last_commit_tags(repo_ss)
     print(first_comm, first)
     print(last_comm, last)
     self.assertEqual(first_comm, first)
     self.assertEqual(last_comm, last)