Skip to content

Commit 120c5af

Browse files
committed
Adjust test assertions
1 parent 2679fe2 commit 120c5af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyterlab_git/tests/test_diff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async def test_changed_files_two_commits():
112112

113113
# Then
114114
mock_execute.assert_called_once_with(
115-
["git", "diff", "HEAD", "origin/HEAD", "--name-only", "-z"],
115+
["git", "diff", "HEAD", "origin/HEAD", "--name-only", "-z", "--"],
116116
cwd="test-path",
117117
timeout=20,
118118
env=None,
@@ -136,7 +136,7 @@ async def test_changed_files_git_diff_error():
136136

137137
# Then
138138
mock_execute.assert_called_once_with(
139-
["git", "diff", "HEAD", "origin/HEAD", "--name-only", "-z"],
139+
["git", "diff", "HEAD", "origin/HEAD", "--name-only", "-z", "--"],
140140
cwd="test-path",
141141
timeout=20,
142142
env=None,

0 commit comments

Comments
 (0)