@@ -23,7 +23,7 @@ def test_git_pull_fail(mock_subproc_popen):
2323 # Then
2424 mock_subproc_popen .assert_has_calls ([
2525 call (
26- ['git pull --no-commit' ],
26+ ['git' , ' pull' , ' --no-commit' ],
2727 stdout = PIPE ,
2828 stderr = PIPE ,
2929 cwd = '/bin/test_curr_path' ,
@@ -56,7 +56,7 @@ def test_git_pull_with_auth_fail(mock_git_auth_input_wrapper):
5656 # Then
5757 mock_git_auth_input_wrapper .assert_has_calls ([
5858 call (
59- command = 'git pull --no-commit' ,
59+ command = [ 'git' , ' pull' , ' --no-commit'] ,
6060 cwd = '/bin/test_curr_path' ,
6161 env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
6262 username = 'asdf' ,
@@ -84,7 +84,7 @@ def test_git_pull_success(mock_subproc_popen):
8484 # Then
8585 mock_subproc_popen .assert_has_calls ([
8686 call (
87- ['git pull --no-commit' ],
87+ ['git' , ' pull' , ' --no-commit' ],
8888 stdout = PIPE ,
8989 stderr = PIPE ,
9090 cwd = '/bin/test_curr_path' ,
@@ -116,7 +116,7 @@ def test_git_pull_with_auth_success(mock_git_auth_input_wrapper):
116116 # Then
117117 mock_git_auth_input_wrapper .assert_has_calls ([
118118 call (
119- command = 'git pull --no-commit' ,
119+ command = [ 'git' , ' pull' , ' --no-commit'] ,
120120 cwd = '/bin/test_curr_path' ,
121121 env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
122122 username = 'asdf' ,
@@ -144,7 +144,7 @@ def test_git_push_fail(mock_subproc_popen):
144144 # Then
145145 mock_subproc_popen .assert_has_calls ([
146146 call (
147- ['git push test_origin HEAD:test_master' ],
147+ ['git' , ' push' , ' test_origin' , ' HEAD:test_master' ],
148148 stdout = PIPE ,
149149 stderr = PIPE ,
150150 cwd = '/bin/test_curr_path' ,
@@ -176,7 +176,7 @@ def test_git_push_with_auth_fail(mock_git_auth_input_wrapper):
176176 # Then
177177 mock_git_auth_input_wrapper .assert_has_calls ([
178178 call (
179- command = 'git push test_origin HEAD:test_master' ,
179+ command = [ 'git' , ' push' , ' test_origin' , ' HEAD:test_master'] ,
180180 cwd = '/bin/test_curr_path' ,
181181 env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
182182 username = 'asdf' ,
@@ -205,7 +205,7 @@ def test_git_push_success(mock_subproc_popen):
205205 # Then
206206 mock_subproc_popen .assert_has_calls ([
207207 call (
208- ['git push . HEAD:test_master' ],
208+ ['git' , ' push' , '.' , ' HEAD:test_master' ],
209209 stdout = PIPE ,
210210 stderr = PIPE ,
211211 cwd = '/bin/test_curr_path' ,
@@ -237,7 +237,7 @@ def test_git_push_with_auth_success(mock_git_auth_input_wrapper):
237237 # Then
238238 mock_git_auth_input_wrapper .assert_has_calls ([
239239 call (
240- command = 'git push . HEAD:test_master' ,
240+ command = [ 'git' , ' push' , '.' , ' HEAD:test_master'] ,
241241 cwd = '/bin/test_curr_path' ,
242242 env = {'TEST' : 'test' , 'GIT_TERMINAL_PROMPT' : '1' },
243243 username = 'asdf' ,
0 commit comments