@@ -28,7 +28,7 @@ def test_heads_should_return_array_of_head_objects(self):
2828 for head in self .repo .heads :
2929 assert_equal (Head , head .__class__ )
3030
31- @patch (Git , 'method_missing ' )
31+ @patch (Git , '_call_process ' )
3232 def test_heads_should_populate_head_data (self , git ):
3333 git .return_value = fixture ('for_each_ref' )
3434
@@ -39,7 +39,7 @@ def test_heads_should_populate_head_data(self, git):
3939 assert_true (git .called )
4040 assert_equal (git .call_args , (('for_each_ref' , 'refs/heads' ), {'sort' : 'committerdate' , 'format' : '%(refname)%00%(objectname)' }))
4141
42- @patch (Git , 'method_missing ' )
42+ @patch (Git , '_call_process ' )
4343 def test_commits (self , git ):
4444 git .return_value = fixture ('rev_list' )
4545
@@ -67,7 +67,7 @@ def test_commits(self, git):
6767 assert_true (git .called )
6868 assert_equal (git .call_args , (('rev_list' , 'master' ), {'skip' : 0 , 'pretty' : 'raw' , 'max_count' : 10 }))
6969
70- @patch (Git , 'method_missing ' )
70+ @patch (Git , '_call_process ' )
7171 def test_commit_count (self , git ):
7272 git .return_value = fixture ('rev_list_count' )
7373
@@ -76,7 +76,7 @@ def test_commit_count(self, git):
7676 assert_true (git .called )
7777 assert_equal (git .call_args , (('rev_list' , 'master' ), {}))
7878
79- @patch (Git , 'method_missing ' )
79+ @patch (Git , '_call_process ' )
8080 def test_commit (self , git ):
8181 git .return_value = fixture ('rev_list_single' )
8282
@@ -87,7 +87,7 @@ def test_commit(self, git):
8787 assert_true (git .called )
8888 assert_equal (git .call_args , (('rev_list' , '4c8124ffcf4039d292442eeccabdeca5af5c5017' ), {'pretty' : 'raw' , 'max_count' : 1 }))
8989
90- @patch (Git , 'method_missing ' )
90+ @patch (Git , '_call_process ' )
9191 def test_tree (self , git ):
9292 git .return_value = fixture ('ls_tree_a' )
9393
@@ -99,7 +99,7 @@ def test_tree(self, git):
9999 assert_true (git .called )
100100 assert_equal (git .call_args , (('ls_tree' , 'master' ), {}))
101101
102- @patch (Git , 'method_missing ' )
102+ @patch (Git , '_call_process ' )
103103 def test_blob (self , git ):
104104 git .return_value = fixture ('cat_file_blob' )
105105
@@ -110,7 +110,7 @@ def test_blob(self, git):
110110 assert_equal (git .call_args , (('cat_file' , 'abc' ), {'p' : True }))
111111
112112 @patch (Repo , '__init__' )
113- @patch (Git , 'method_missing ' )
113+ @patch (Git , '_call_process ' )
114114 def test_init_bare (self , repo , git ):
115115 git .return_value = True
116116
@@ -122,7 +122,7 @@ def test_init_bare(self, repo, git):
122122 assert_equal (repo .call_args , (('repos/foo/bar.git' ,), {}))
123123
124124 @patch (Repo , '__init__' )
125- @patch (Git , 'method_missing ' )
125+ @patch (Git , '_call_process ' )
126126 def test_init_bare_with_options (self , repo , git ):
127127 git .return_value = True
128128
@@ -134,7 +134,7 @@ def test_init_bare_with_options(self, repo, git):
134134 assert_equal (repo .call_args , (('repos/foo/bar.git' ,), {}))
135135
136136 @patch (Repo , '__init__' )
137- @patch (Git , 'method_missing ' )
137+ @patch (Git , '_call_process ' )
138138 def test_fork_bare (self , repo , git ):
139139 git .return_value = None
140140
@@ -145,7 +145,7 @@ def test_fork_bare(self, repo, git):
145145 assert_true (repo .called )
146146
147147 @patch (Repo , '__init__' )
148- @patch (Git , 'method_missing ' )
148+ @patch (Git , '_call_process ' )
149149 def test_fork_bare_with_options (self , repo , git ):
150150 git .return_value = None
151151
@@ -156,7 +156,7 @@ def test_fork_bare_with_options(self, repo, git):
156156 {'bare' : True , 'template' : '/awesome' }))
157157 assert_true (repo .called )
158158
159- @patch (Git , 'method_missing ' )
159+ @patch (Git , '_call_process ' )
160160 def test_diff (self , git ):
161161 self .repo .diff ('master^' , 'master' )
162162
@@ -173,7 +173,7 @@ def test_diff(self, git):
173173 assert_true (git .called )
174174 assert_equal (git .call_args , (('diff' , 'master^' , 'master' , '--' , 'foo/bar' , 'foo/baz' ), {}))
175175
176- @patch (Git , 'method_missing ' )
176+ @patch (Git , '_call_process ' )
177177 def test_diff (self , git ):
178178 git .return_value = fixture ('diff_p' )
179179
@@ -248,7 +248,7 @@ def test_alternates_setter_empty(self, os):
248248 def test_repr (self ):
249249 assert_equal ('<GitPython.Repo "%s/.git">' % os .path .abspath (GIT_REPO ), repr (self .repo ))
250250
251- @patch (Git , 'method_missing ' )
251+ @patch (Git , '_call_process ' )
252252 def test_log (self , git ):
253253 git .return_value = fixture ('rev_list' )
254254 assert_equal ('4c8124ffcf4039d292442eeccabdeca5af5c5017' , self .repo .log ()[0 ].id )
@@ -257,15 +257,15 @@ def test_log(self, git):
257257 assert_equal (git .call_count , 2 )
258258 assert_equal (git .call_args , (('log' , 'master' ), {'pretty' : 'raw' }))
259259
260- @patch (Git , 'method_missing ' )
260+ @patch (Git , '_call_process ' )
261261 def test_log_with_path_and_options (self , git ):
262262 git .return_value = fixture ('rev_list' )
263263 self .repo .log ('master' , 'file.rb' , ** {'max_count' : 1 })
264264 assert_true (git .called )
265265 assert_equal (git .call_args , (('log' , 'master' , '--' , 'file.rb' ), {'pretty' : 'raw' , 'max_count' : 1 }))
266266
267- # @patch(Git, 'method_missing ')
268- # @patch(Git, 'method_missing ')
267+ # @patch(Git, '_call_process ')
268+ # @patch(Git, '_call_process ')
269269 # def test_commit_deltas_from_nothing_new(self, gitb, gita):
270270 # gitb.return_value = fixture("rev_list_delta_b")
271271 # gita.return_value = fixture("rev_list_delta_a")
0 commit comments