summaryrefslogtreecommitdiff
path: root/test/git/test_repo.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_repo.py
parent58e2157ad3aa9d75ef4abb90eb2d1f01fba0ba2b (diff)
downloadgitpython-b7a5c05875a760c0bf83af6617c68061bda6cfc5.tar.gz
Adjusted tests to deal with API changes
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 02eea7de..b02610f4 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -168,17 +168,11 @@ class TestRepo(TestBase):
self.rorepo._bare = True
assert self.rorepo.is_dirty == False
- @patch_object(Git, '_call_process')
- def test_active_branch(self, git):
- git.return_value = 'refs/heads/major-refactoring'
- assert_equal(self.rorepo.active_branch.name, 'major-refactoring')
- assert_equal(git.call_args, (('symbolic_ref', 'HEAD'), {}))
-
def test_head(self):
- assert self.rorepo.head.object == self.rorepo.active_branch.object
+ assert self.rorepo.head.reference.object == self.rorepo.active_branch.object
def test_tag(self):
- assert self.rorepo.tag('0.1.5').commit
+ assert self.rorepo.tag('refs/tags/0.1.5').commit
def test_archive(self):
tmpfile = os.tmpfile()