summaryrefslogtreecommitdiff
path: root/test/git/test_refs.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 23:31:26 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 23:31:26 +0200
commitb7a5c05875a760c0bf83af6617c68061bda6cfc5 (patch)
treecf2090d419ff714b4e1293523cf1568bc2331855 /test/git/test_refs.py
parent58e2157ad3aa9d75ef4abb90eb2d1f01fba0ba2b (diff)
downloadgitpython-b7a5c05875a760c0bf83af6617c68061bda6cfc5.tar.gz
Adjusted tests to deal with API changes
Diffstat (limited to 'test/git/test_refs.py')
-rw-r--r--test/git/test_refs.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/git/test_refs.py b/test/git/test_refs.py
index ece6bf3e..0954d42d 100644
--- a/test/git/test_refs.py
+++ b/test/git/test_refs.py
@@ -72,13 +72,13 @@ class TestRefs(TestBase):
def test_head_reset(self, rw_repo):
cur_head = rw_repo.head
new_head_commit = cur_head.ref.commit.parents[0]
- reset_head = Head.reset(rw_repo, new_head_commit, index=True) # index only
- assert reset_head.commit == new_head_commit
+ cur_head.reset(new_head_commit, index=True) # index only
+ assert cur_head.reference.commit == new_head_commit
- self.failUnlessRaises(ValueError, Head.reset, rw_repo, new_head_commit, index=False, working_tree=True)
+ self.failUnlessRaises(ValueError, cur_head.reset, new_head_commit, index=False, working_tree=True)
new_head_commit = new_head_commit.parents[0]
- reset_head = Head.reset(rw_repo, new_head_commit, index=True, working_tree=True) # index + wt
- assert reset_head.commit == new_head_commit
+ cur_head.reset(new_head_commit, index=True, working_tree=True) # index + wt
+ assert cur_head.reference.commit == new_head_commit
# paths
- Head.reset(rw_repo, new_head_commit, paths = "lib")
+ cur_head.reset(new_head_commit, paths = "lib")