diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 20:09:19 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-11-04 20:12:22 +0100 |
commit | ec1f9c9e9a6ce14ddc69b6be65188b3438f31f23 (patch) | |
tree | cea4ab324046c27c9a6e3570f11425053846af2b /test/git | |
parent | d884adc80c80300b4cc05321494713904ef1df2d (diff) | |
download | gitpython-ec1f9c9e9a6ce14ddc69b6be65188b3438f31f23.tar.gz |
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
Diffstat (limited to 'test/git')
-rw-r--r-- | test/git/test_refs.py | 4 | ||||
-rw-r--r-- | test/git/test_remote.py | 4 |
2 files changed, 2 insertions, 6 deletions
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') diff --git a/test/git/test_remote.py b/test/git/test_remote.py index f049f6f7..0af9f0cf 100644 --- a/test/git/test_remote.py +++ b/test/git/test_remote.py @@ -316,10 +316,6 @@ class TestRemote(TestBase): res = remote.push(all=True) self._test_push_result(res, remote) - # pull is essentially a fetch + merge, hence we just do a light - # test here, leave the reset to the actual merge testing - # fails as we did not specify a branch and there is no configuration for it - self.failUnlessRaises(GitCommandError, remote.pull) remote.pull('master') # cleanup - delete created tags and branches as we are in an innerloop on |