From ec1f9c9e9a6ce14ddc69b6be65188b3438f31f23 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 4 Nov 2009 20:09:19 +0100 Subject: helpers: fixed and improved test repo decorators to use the new head.checkout functions for greater ease of use - they work exactly as expected now. Fixed failing test in remote tests by actually removing the line --- test/git/test_refs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git/test_refs.py') diff --git a/test/git/test_refs.py b/test/git/test_refs.py index 32a6de1c..8fa30aa1 100644 --- a/test/git/test_refs.py +++ b/test/git/test_refs.py @@ -223,10 +223,10 @@ class TestRefs(TestBase): assert active_branch != rw_repo.active_branch assert new_head == rw_repo.active_branch - # checkout with force has we have a change + # checkout with force as we have a changed a file # clear file open(new_head.commit.tree.blobs[-1].abspath,'w').close() - assert len(new_head.commit.diff(None)) == 1 + assert len(new_head.commit.diff(None)) # create a new branch that is likely to touch the file we changed far_away_head = rw_repo.create_head("far_head",'HEAD~100') -- cgit v1.2.1