@@ -118,6 +118,7 @@ def test_blob(self, git):
118
118
@patch_object (Git , '_call_process' )
119
119
def test_init_bare (self , repo , git ):
120
120
git .return_value = True
121
+ repo .return_value = None
121
122
122
123
Repo .init_bare ("repos/foo/bar.git" )
123
124
@@ -130,6 +131,7 @@ def test_init_bare(self, repo, git):
130
131
@patch_object (Git , '_call_process' )
131
132
def test_init_bare_with_options (self , repo , git ):
132
133
git .return_value = True
134
+ repo .return_value = None
133
135
134
136
Repo .init_bare ("repos/foo/bar.git" , ** {'template' : "/baz/sweet" })
135
137
@@ -142,6 +144,7 @@ def test_init_bare_with_options(self, repo, git):
142
144
@patch_object (Git , '_call_process' )
143
145
def test_fork_bare (self , repo , git ):
144
146
git .return_value = None
147
+ repo .return_value = None
145
148
146
149
self .repo .fork_bare ("repos/foo/bar.git" )
147
150
@@ -154,6 +157,7 @@ def test_fork_bare(self, repo, git):
154
157
@patch_object (Git , '_call_process' )
155
158
def test_fork_bare_with_options (self , repo , git ):
156
159
git .return_value = None
160
+ repo .return_value = None
157
161
158
162
self .repo .fork_bare ("repos/foo/bar.git" , ** {'template' : '/awesome' })
159
163
0 commit comments