diff options
author | Andy Doan <andy.doan@linaro.org> | 2015-07-09 14:38:49 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2015-07-15 14:21:03 -0500 |
commit | 17a5a6d90a2d4098789cdb82d311499faf7fb12c (patch) | |
tree | a0fa9659e6b15e1b1ab5c59e6a3c6f767a87a117 /tests | |
parent | 87fca7e823803c672dc4c7cb31a3889bf80bb785 (diff) |
change git-repo to return "commit" objects from dulwich
future changes will need to look at the author, committer, and message
of a commit.
Change-Id: Idbe898befd12df653dbed876f002f03f8a2a50a4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gitrepo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_gitrepo.py b/tests/test_gitrepo.py index bbbd934..d1ec23f 100644 --- a/tests/test_gitrepo.py +++ b/tests/test_gitrepo.py @@ -76,7 +76,7 @@ class TestGitRepo(unittest.TestCase): commits.append(self._add_commit('foo', 'foocontent', 'commit1')) commits.append(self._add_commit('foo', 'foocontent2', 'commit2')) - found = list(self.main.process_unchecked_commits()) + found = [x.id for x in self.main.process_unchecked_commits()] self.assertEqual(commits, found) def test_commits_to_check_previous(self): @@ -88,7 +88,7 @@ class TestGitRepo(unittest.TestCase): commits = [] commits.append(self._add_commit('foo', 'foocontent2', 'commit2')) - found = list(self.main.process_unchecked_commits()) + found = [x.id for x in self.main.process_unchecked_commits()] self.assertEqual(commits, found) def test_commits_to_check_rewrite(self): @@ -101,5 +101,5 @@ class TestGitRepo(unittest.TestCase): with open(last_commit, 'w') as f: f.write('11111111111') # invalid sha1, so we'll search back - found = list(self.main.process_unchecked_commits()) + found = [x.id for x in self.main.process_unchecked_commits()] self.assertEqual(commits, found) |