Skip to content

Commit 5957fe0

Browse files
committed
Fix tests
1 parent 766b664 commit 5957fe0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

jupyterlab_git/tests/test_clone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_git_clone_success(mock_subproc_popen):
2323
# Then
2424
mock_subproc_popen.assert_has_calls([
2525
call(
26-
['git clone ghjkhjkl'],
26+
['git', 'clone', 'ghjkhjkl'],
2727
stdout=PIPE,
2828
stderr=PIPE,
2929
cwd='/bin/test_curr_path',
@@ -57,7 +57,7 @@ def test_git_clone_failure_from_git(mock_subproc_popen):
5757
# Then
5858
mock_subproc_popen.assert_has_calls([
5959
call(
60-
['git clone ghjkhjkl'],
60+
['git', 'clone', 'ghjkhjkl'],
6161
stdout=PIPE,
6262
stderr=PIPE,
6363
cwd='/bin/test_curr_path',

jupyterlab_git/tests/test_pushpull.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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',
@@ -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',
@@ -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',
@@ -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

Comments
 (0)