@@ -23,7 +23,7 @@ def test_git_pull_fail(mock_subproc_popen):
23
23
# Then
24
24
mock_subproc_popen .assert_has_calls ([
25
25
call (
26
- ['git pull --no-commit' ],
26
+ ['git' , ' pull' , ' --no-commit' ],
27
27
stdout = PIPE ,
28
28
stderr = PIPE ,
29
29
cwd = '/bin/test_curr_path' ,
@@ -56,7 +56,7 @@ def test_git_pull_with_auth_fail(mock_git_auth_input_wrapper):
56
56
# Then
57
57
mock_git_auth_input_wrapper .assert_has_calls ([
58
58
call (
59
- command = 'git pull --no-commit' ,
59
+ command = [ 'git' , ' pull' , ' --no-commit'] ,
60
60
cwd = '/bin/test_curr_path' ,
61
61
env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
62
62
username = 'asdf' ,
@@ -84,7 +84,7 @@ def test_git_pull_success(mock_subproc_popen):
84
84
# Then
85
85
mock_subproc_popen .assert_has_calls ([
86
86
call (
87
- ['git pull --no-commit' ],
87
+ ['git' , ' pull' , ' --no-commit' ],
88
88
stdout = PIPE ,
89
89
stderr = PIPE ,
90
90
cwd = '/bin/test_curr_path' ,
@@ -116,7 +116,7 @@ def test_git_pull_with_auth_success(mock_git_auth_input_wrapper):
116
116
# Then
117
117
mock_git_auth_input_wrapper .assert_has_calls ([
118
118
call (
119
- command = 'git pull --no-commit' ,
119
+ command = [ 'git' , ' pull' , ' --no-commit'] ,
120
120
cwd = '/bin/test_curr_path' ,
121
121
env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
122
122
username = 'asdf' ,
@@ -144,7 +144,7 @@ def test_git_push_fail(mock_subproc_popen):
144
144
# Then
145
145
mock_subproc_popen .assert_has_calls ([
146
146
call (
147
- ['git push test_origin HEAD:test_master' ],
147
+ ['git' , ' push' , ' test_origin' , ' HEAD:test_master' ],
148
148
stdout = PIPE ,
149
149
stderr = PIPE ,
150
150
cwd = '/bin/test_curr_path' ,
@@ -176,7 +176,7 @@ def test_git_push_with_auth_fail(mock_git_auth_input_wrapper):
176
176
# Then
177
177
mock_git_auth_input_wrapper .assert_has_calls ([
178
178
call (
179
- command = 'git push test_origin HEAD:test_master' ,
179
+ command = [ 'git' , ' push' , ' test_origin' , ' HEAD:test_master'] ,
180
180
cwd = '/bin/test_curr_path' ,
181
181
env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
182
182
username = 'asdf' ,
@@ -205,7 +205,7 @@ def test_git_push_success(mock_subproc_popen):
205
205
# Then
206
206
mock_subproc_popen .assert_has_calls ([
207
207
call (
208
- ['git push . HEAD:test_master' ],
208
+ ['git' , ' push' , '.' , ' HEAD:test_master' ],
209
209
stdout = PIPE ,
210
210
stderr = PIPE ,
211
211
cwd = '/bin/test_curr_path' ,
@@ -237,7 +237,7 @@ def test_git_push_with_auth_success(mock_git_auth_input_wrapper):
237
237
# Then
238
238
mock_git_auth_input_wrapper .assert_has_calls ([
239
239
call (
240
- command = 'git push . HEAD:test_master' ,
240
+ command = [ 'git' , ' push' , '.' , ' HEAD:test_master'] ,
241
241
cwd = '/bin/test_curr_path' ,
242
242
env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
243
243
username = 'asdf' ,
0 commit comments