Skip to content

Commit b742d89

Browse files
committed
Update test to include binary file
1 parent 600957d commit b742d89

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

jupyterlab_git/tests/test_detailed_log.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ async def test_detailed_log():
2424
"14\t1\tpath/Notebook with λ.ipynb",
2525
"0\t0\t",
2626
"folder1/file with spaces and λ.py",
27-
"folder2/file with spaces.py"
27+
"folder2/file with spaces.py",
28+
"-\t-\tbinary_file.png",
2829
]
2930

3031

@@ -34,8 +35,8 @@ async def test_detailed_log():
3435

3536
expected_response = {
3637
"code": 0,
37-
"modified_file_note": "6 files changed, 60 insertions(+), 19 deletions(-)",
38-
"modified_files_count": "6",
38+
"modified_file_note": "7 files changed, 60 insertions(+), 19 deletions(-)",
39+
"modified_files_count": "7",
3940
"number_of_insertions": "60",
4041
"number_of_deletions": "19",
4142
"modified_files": [
@@ -75,6 +76,12 @@ async def test_detailed_log():
7576
"insertion": "0",
7677
"deletion": "0",
7778
},
79+
{
80+
"modified_file_path": "binary_file.png",
81+
"modified_file_name": "binary_file.png",
82+
"insertion": "0",
83+
"deletion": "0",
84+
},
7885
],
7986
}
8087

0 commit comments

Comments
 (0)