def test_dedupe_with_different_commit(self): same_commit = self.create_commit().__dict__ diff_commit = self.create_commit().__dict__ commits = [same_commit, diff_commit, same_commit] result = dedupe_commits(commits) assert len(result) == 2
def test_dedupe_with_same_commit(self): commit = self.create_commit().__dict__ commits = [commit, commit, commit] result = dedupe_commits(commits) assert len(result) == 1