Skip to content

Commit 08f3289

Browse files
davispByron
authored andcommitted
Fix unittests for Mock 0.5.0
1 parent c8b4ab7 commit 08f3289

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

test/git/test_repo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_blob(self, git):
116116

117117
@patch_object(Repo, '__init__')
118118
@patch_object(Git, '_call_process')
119-
def test_init_bare(self, repo, git):
119+
def test_init_bare(self, git, repo):
120120
git.return_value = True
121121
repo.return_value = None
122122

@@ -129,7 +129,7 @@ def test_init_bare(self, repo, git):
129129

130130
@patch_object(Repo, '__init__')
131131
@patch_object(Git, '_call_process')
132-
def test_init_bare_with_options(self, repo, git):
132+
def test_init_bare_with_options(self, git, repo):
133133
git.return_value = True
134134
repo.return_value = None
135135

@@ -142,7 +142,7 @@ def test_init_bare_with_options(self, repo, git):
142142

143143
@patch_object(Repo, '__init__')
144144
@patch_object(Git, '_call_process')
145-
def test_fork_bare(self, repo, git):
145+
def test_fork_bare(self, git, repo):
146146
git.return_value = None
147147
repo.return_value = None
148148

@@ -155,7 +155,7 @@ def test_fork_bare(self, repo, git):
155155

156156
@patch_object(Repo, '__init__')
157157
@patch_object(Git, '_call_process')
158-
def test_fork_bare_with_options(self, repo, git):
158+
def test_fork_bare_with_options(self, git, repo):
159159
git.return_value = None
160160
repo.return_value = None
161161

test/git/test_tree.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_content_from_string_invalid_type_should_raise(self):
5656

5757
@patch_object(Blob, 'size')
5858
@patch_object(Git, '_call_process')
59-
def test_slash(self, blob, git):
59+
def test_slash(self, git, blob):
6060
git.return_value = fixture('ls_tree_a')
6161
blob.return_value = 1
6262

@@ -70,7 +70,7 @@ def test_slash(self, blob, git):
7070

7171
@patch_object(Blob, 'size')
7272
@patch_object(Git, '_call_process')
73-
def test_slash_with_zero_length_file(self, blob, git):
73+
def test_slash_with_zero_length_file(self, git, blob):
7474
git.return_value = fixture('ls_tree_a')
7575
blob.return_value = 0
7676

@@ -97,7 +97,7 @@ def test_slash_with_commits(self, git):
9797

9898
@patch_object(Blob, 'size')
9999
@patch_object(Git, '_call_process')
100-
def test_dict(self, blob, git):
100+
def test_dict(self, git, blob):
101101
git.return_value = fixture('ls_tree_a')
102102
blob.return_value = 1
103103

@@ -111,7 +111,7 @@ def test_dict(self, blob, git):
111111

112112
@patch_object(Blob, 'size')
113113
@patch_object(Git, '_call_process')
114-
def test_dict_with_zero_length_file(self, blob, git):
114+
def test_dict_with_zero_length_file(self, git, blob):
115115
git.return_value = fixture('ls_tree_a')
116116
blob.return_value = 0
117117

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy