From 0d6ceabf5b90e7c0690360fc30774d36644f563c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 30 Apr 2010 09:57:03 +0200 Subject: Added additional tz_offset testing in performance test to call it more often. Fixed test which required to be on master to work - it now uses the HEAD symbolic ref instead. --- test/git/test_commit.py | 2 +- test/git/test_performance.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'test/git') diff --git a/test/git/test_commit.py b/test/git/test_commit.py index e8bc078a..48937c93 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -97,7 +97,7 @@ class TestCommit(TestBase): def test_iteration(self): # we can iterate commits - all_commits = Commit.list_items(self.rorepo, 'master') + all_commits = Commit.list_items(self.rorepo, self.rorepo.head) assert all_commits assert all_commits == list(self.rorepo.iter_commits()) diff --git a/test/git/test_performance.py b/test/git/test_performance.py index 588f1e14..72acfcac 100644 --- a/test/git/test_performance.py +++ b/test/git/test_performance.py @@ -13,9 +13,12 @@ class TestPerformance(TestBase): def _query_commit_info(self, c): c.author c.authored_date + c.author_tz_offset c.committer c.committed_date + c.committer_tz_offset c.message + c.parents def test_iteration(self): num_objs = 0 -- cgit v1.2.1