aboutsummaryrefslogtreecommitdiff
path: root/test/git/test_tag.py
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2008-10-31 22:46:47 +0100
committerMichael Trier <mtrier@gmail.com>2008-12-15 12:09:45 -0500
commitdc1fcf372878240e0a1af20641d361f14aea7252 (patch)
treecfb0a64a630f857aa86f8afdb6a88b10a9c70c6e /test/git/test_tag.py
parentb00f3689aa19938c10576580fbfc9243d9f3866c (diff)
downloadGitPython-dc1fcf372878240e0a1af20641d361f14aea7252.tar.gz
GitPython-dc1fcf372878240e0a1af20641d361f14aea7252.zip
Get compatible with mock0.4 (to some extend ;)). Just that Michael
doesn't need to do the same boring replacing I did. (cherry picked from commit 10c62aa69193a8bc7b46ca24c2ad1d5008489665)
Diffstat (limited to 'test/git/test_tag.py')
-rw-r--r--test/git/test_tag.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/git/test_tag.py b/test/git/test_tag.py
index 3d33d7e3..a8b128b1 100644
--- a/test/git/test_tag.py
+++ b/test/git/test_tag.py
@@ -12,7 +12,7 @@ class TestTag(object):
def setup(self):
self.repo = Repo(GIT_REPO)
- @patch(Git, '_call_process')
+ @patch_object(Git, '_call_process')
def test_list_from_string(self, git):
git.return_value = fixture('for_each_ref_tags')
@@ -25,7 +25,7 @@ class TestTag(object):
assert_true(git.called)
assert_equal(git.call_args, (('for_each_ref', 'refs/tags'), {'sort': 'committerdate', 'format': '%(refname)%00%(objectname)'}))
- @patch(Git, '_call_process')
+ @patch_object(Git, '_call_process')
def test_repr(self, git):
git.return_value = fixture('for_each_ref')