Skip to content

Commit 1083748

Browse files
committed
Corrected failing tests because the Repo mocking was not returning None.
1 parent 11ec2e0 commit 1083748

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/git/test_repo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def test_blob(self, git):
118118
@patch_object(Git, '_call_process')
119119
def test_init_bare(self, repo, git):
120120
git.return_value = True
121+
repo.return_value = None
121122

122123
Repo.init_bare("repos/foo/bar.git")
123124

@@ -130,6 +131,7 @@ def test_init_bare(self, repo, git):
130131
@patch_object(Git, '_call_process')
131132
def test_init_bare_with_options(self, repo, git):
132133
git.return_value = True
134+
repo.return_value = None
133135

134136
Repo.init_bare("repos/foo/bar.git", **{'template': "/baz/sweet"})
135137

@@ -142,6 +144,7 @@ def test_init_bare_with_options(self, repo, git):
142144
@patch_object(Git, '_call_process')
143145
def test_fork_bare(self, repo, git):
144146
git.return_value = None
147+
repo.return_value = None
145148

146149
self.repo.fork_bare("repos/foo/bar.git")
147150

@@ -154,6 +157,7 @@ def test_fork_bare(self, repo, git):
154157
@patch_object(Git, '_call_process')
155158
def test_fork_bare_with_options(self, repo, git):
156159
git.return_value = None
160+
repo.return_value = None
157161

158162
self.repo.fork_bare("repos/foo/bar.git", **{'template': '/awesome'})
159163

0 commit comments

Comments
 (0)