@@ -28,7 +28,7 @@ def test_heads_should_return_array_of_head_objects(self):
28
28
for head in self .repo .heads :
29
29
assert_equal (Head , head .__class__ )
30
30
31
- @patch (Git , 'method_missing ' )
31
+ @patch (Git , '_call_process ' )
32
32
def test_heads_should_populate_head_data (self , git ):
33
33
git .return_value = fixture ('for_each_ref' )
34
34
@@ -39,7 +39,7 @@ def test_heads_should_populate_head_data(self, git):
39
39
assert_true (git .called )
40
40
assert_equal (git .call_args , (('for_each_ref' , 'refs/heads' ), {'sort' : 'committerdate' , 'format' : '%(refname)%00%(objectname)' }))
41
41
42
- @patch (Git , 'method_missing ' )
42
+ @patch (Git , '_call_process ' )
43
43
def test_commits (self , git ):
44
44
git .return_value = fixture ('rev_list' )
45
45
@@ -67,7 +67,7 @@ def test_commits(self, git):
67
67
assert_true (git .called )
68
68
assert_equal (git .call_args , (('rev_list' , 'master' ), {'skip' : 0 , 'pretty' : 'raw' , 'max_count' : 10 }))
69
69
70
- @patch (Git , 'method_missing ' )
70
+ @patch (Git , '_call_process ' )
71
71
def test_commit_count (self , git ):
72
72
git .return_value = fixture ('rev_list_count' )
73
73
@@ -76,7 +76,7 @@ def test_commit_count(self, git):
76
76
assert_true (git .called )
77
77
assert_equal (git .call_args , (('rev_list' , 'master' ), {}))
78
78
79
- @patch (Git , 'method_missing ' )
79
+ @patch (Git , '_call_process ' )
80
80
def test_commit (self , git ):
81
81
git .return_value = fixture ('rev_list_single' )
82
82
@@ -87,7 +87,7 @@ def test_commit(self, git):
87
87
assert_true (git .called )
88
88
assert_equal (git .call_args , (('rev_list' , '4c8124ffcf4039d292442eeccabdeca5af5c5017' ), {'pretty' : 'raw' , 'max_count' : 1 }))
89
89
90
- @patch (Git , 'method_missing ' )
90
+ @patch (Git , '_call_process ' )
91
91
def test_tree (self , git ):
92
92
git .return_value = fixture ('ls_tree_a' )
93
93
@@ -99,7 +99,7 @@ def test_tree(self, git):
99
99
assert_true (git .called )
100
100
assert_equal (git .call_args , (('ls_tree' , 'master' ), {}))
101
101
102
- @patch (Git , 'method_missing ' )
102
+ @patch (Git , '_call_process ' )
103
103
def test_blob (self , git ):
104
104
git .return_value = fixture ('cat_file_blob' )
105
105
@@ -110,7 +110,7 @@ def test_blob(self, git):
110
110
assert_equal (git .call_args , (('cat_file' , 'abc' ), {'p' : True }))
111
111
112
112
@patch (Repo , '__init__' )
113
- @patch (Git , 'method_missing ' )
113
+ @patch (Git , '_call_process ' )
114
114
def test_init_bare (self , repo , git ):
115
115
git .return_value = True
116
116
@@ -122,7 +122,7 @@ def test_init_bare(self, repo, git):
122
122
assert_equal (repo .call_args , (('repos/foo/bar.git' ,), {}))
123
123
124
124
@patch (Repo , '__init__' )
125
- @patch (Git , 'method_missing ' )
125
+ @patch (Git , '_call_process ' )
126
126
def test_init_bare_with_options (self , repo , git ):
127
127
git .return_value = True
128
128
@@ -134,7 +134,7 @@ def test_init_bare_with_options(self, repo, git):
134
134
assert_equal (repo .call_args , (('repos/foo/bar.git' ,), {}))
135
135
136
136
@patch (Repo , '__init__' )
137
- @patch (Git , 'method_missing ' )
137
+ @patch (Git , '_call_process ' )
138
138
def test_fork_bare (self , repo , git ):
139
139
git .return_value = None
140
140
@@ -145,7 +145,7 @@ def test_fork_bare(self, repo, git):
145
145
assert_true (repo .called )
146
146
147
147
@patch (Repo , '__init__' )
148
- @patch (Git , 'method_missing ' )
148
+ @patch (Git , '_call_process ' )
149
149
def test_fork_bare_with_options (self , repo , git ):
150
150
git .return_value = None
151
151
@@ -156,7 +156,7 @@ def test_fork_bare_with_options(self, repo, git):
156
156
{'bare' : True , 'template' : '/awesome' }))
157
157
assert_true (repo .called )
158
158
159
- @patch (Git , 'method_missing ' )
159
+ @patch (Git , '_call_process ' )
160
160
def test_diff (self , git ):
161
161
self .repo .diff ('master^' , 'master' )
162
162
@@ -173,7 +173,7 @@ def test_diff(self, git):
173
173
assert_true (git .called )
174
174
assert_equal (git .call_args , (('diff' , 'master^' , 'master' , '--' , 'foo/bar' , 'foo/baz' ), {}))
175
175
176
- @patch (Git , 'method_missing ' )
176
+ @patch (Git , '_call_process ' )
177
177
def test_diff (self , git ):
178
178
git .return_value = fixture ('diff_p' )
179
179
@@ -248,7 +248,7 @@ def test_alternates_setter_empty(self, os):
248
248
def test_repr (self ):
249
249
assert_equal ('<GitPython.Repo "%s/.git">' % os .path .abspath (GIT_REPO ), repr (self .repo ))
250
250
251
- @patch (Git , 'method_missing ' )
251
+ @patch (Git , '_call_process ' )
252
252
def test_log (self , git ):
253
253
git .return_value = fixture ('rev_list' )
254
254
assert_equal ('4c8124ffcf4039d292442eeccabdeca5af5c5017' , self .repo .log ()[0 ].id )
@@ -257,15 +257,15 @@ def test_log(self, git):
257
257
assert_equal (git .call_count , 2 )
258
258
assert_equal (git .call_args , (('log' , 'master' ), {'pretty' : 'raw' }))
259
259
260
- @patch (Git , 'method_missing ' )
260
+ @patch (Git , '_call_process ' )
261
261
def test_log_with_path_and_options (self , git ):
262
262
git .return_value = fixture ('rev_list' )
263
263
self .repo .log ('master' , 'file.rb' , ** {'max_count' : 1 })
264
264
assert_true (git .called )
265
265
assert_equal (git .call_args , (('log' , 'master' , '--' , 'file.rb' ), {'pretty' : 'raw' , 'max_count' : 1 }))
266
266
267
- # @patch(Git, 'method_missing ')
268
- # @patch(Git, 'method_missing ')
267
+ # @patch(Git, '_call_process ')
268
+ # @patch(Git, '_call_process ')
269
269
# def test_commit_deltas_from_nothing_new(self, gitb, gita):
270
270
# gitb.return_value = fixture("rev_list_delta_b")
271
271
# gita.return_value = fixture("rev_list_delta_a")
0 commit comments