diff options
author | Paul J. Davis <paul.joseph.davis@gmail.com> | 2009-07-14 10:31:26 -0400 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-20 21:37:04 +0200 |
commit | 08f3289be744d27e461e595bffece867c8ce2c15 (patch) | |
tree | 02fa6e2ebe4c5386b54dc9fbbc62f8e2e0367d7b | |
parent | c8b4ab7f66004c06c130c7ca09610d0268cd9844 (diff) | |
download | gitpython-08f3289be744d27e461e595bffece867c8ce2c15.tar.gz |
Fix unittests for Mock 0.5.0
-rw-r--r-- | test/git/test_repo.py | 8 | ||||
-rw-r--r-- | test/git/test_tree.py | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 82f27001..1c5b50d9 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -116,7 +116,7 @@ class TestRepo(object): @patch_object(Repo, '__init__') @patch_object(Git, '_call_process') - def test_init_bare(self, repo, git): + def test_init_bare(self, git, repo): git.return_value = True repo.return_value = None @@ -129,7 +129,7 @@ class TestRepo(object): @patch_object(Repo, '__init__') @patch_object(Git, '_call_process') - def test_init_bare_with_options(self, repo, git): + def test_init_bare_with_options(self, git, repo): git.return_value = True repo.return_value = None @@ -142,7 +142,7 @@ class TestRepo(object): @patch_object(Repo, '__init__') @patch_object(Git, '_call_process') - def test_fork_bare(self, repo, git): + def test_fork_bare(self, git, repo): git.return_value = None repo.return_value = None @@ -155,7 +155,7 @@ class TestRepo(object): @patch_object(Repo, '__init__') @patch_object(Git, '_call_process') - def test_fork_bare_with_options(self, repo, git): + def test_fork_bare_with_options(self, git, repo): git.return_value = None repo.return_value = None diff --git a/test/git/test_tree.py b/test/git/test_tree.py index c9fc2640..947b0ffb 100644 --- a/test/git/test_tree.py +++ b/test/git/test_tree.py @@ -56,7 +56,7 @@ class TestTree(object): @patch_object(Blob, 'size') @patch_object(Git, '_call_process') - def test_slash(self, blob, git): + def test_slash(self, git, blob): git.return_value = fixture('ls_tree_a') blob.return_value = 1 @@ -70,7 +70,7 @@ class TestTree(object): @patch_object(Blob, 'size') @patch_object(Git, '_call_process') - def test_slash_with_zero_length_file(self, blob, git): + def test_slash_with_zero_length_file(self, git, blob): git.return_value = fixture('ls_tree_a') blob.return_value = 0 @@ -97,7 +97,7 @@ class TestTree(object): @patch_object(Blob, 'size') @patch_object(Git, '_call_process') - def test_dict(self, blob, git): + def test_dict(self, git, blob): git.return_value = fixture('ls_tree_a') blob.return_value = 1 @@ -111,7 +111,7 @@ class TestTree(object): @patch_object(Blob, 'size') @patch_object(Git, '_call_process') - def test_dict_with_zero_length_file(self, blob, git): + def test_dict_with_zero_length_file(self, git, blob): git.return_value = fixture('ls_tree_a') blob.return_value = 0 |