incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [22/34] git commit: [#4938] more precise test, so it won't fail when the hg repo changes
Date Tue, 02 Oct 2012 21:30:28 GMT
[#4938] more precise test, so it won't fail when the hg repo changes


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/43300c25
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/43300c25
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/43300c25

Branch: refs/heads/db/4968
Commit: 43300c25971282e015a8db0f1eaa5d7845814d80
Parents: 3f844c9
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Fri Sep 28 15:39:05 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Fri Sep 28 15:39:05 2012 +0000

----------------------------------------------------------------------
 ForgeHg/forgehg/tests/model/test_repository.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/43300c25/ForgeHg/forgehg/tests/model/test_repository.py
----------------------------------------------------------------------
diff --git a/ForgeHg/forgehg/tests/model/test_repository.py b/ForgeHg/forgehg/tests/model/test_repository.py
index d240f85..e6339a2 100644
--- a/ForgeHg/forgehg/tests/model/test_repository.py
+++ b/ForgeHg/forgehg/tests/model/test_repository.py
@@ -164,10 +164,10 @@ class TestHgRepo(unittest.TestCase, RepoImplTestBase):
             assert entry.message
 
     def test_revision(self):
-        entry = self.repo.commit('tip')
+        entry = self.repo.commit('4a7f7ec0dcf5')
         assert entry.committed.email == 'rick446@usa.net'
         assert entry.message
-        assert str(entry.committed.date) == "2012-08-29 13:34:26"
+        assert str(entry.committed.date) == "2012-08-29 13:34:26", str(entry.committed.date)
         # Test that sha1s for named refs are looked up in cache first, instead
         # of from disk.
         with mock.patch('forgehg.model.hg.M.repo.Commit.query') as q:


Mime
View raw message