File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -857,16 +857,20 @@ async def test_rename(jp_contents_manager):
857
857
async def test_rename_nonexistent (jp_contents_manager ):
858
858
"""Test renaming a non-existent file/directory returns 404 error"""
859
859
cm = jp_contents_manager
860
-
860
+
861
861
# Test with non-existent file
862
862
with pytest .raises (HTTPError ) as e :
863
863
await ensure_async (cm .rename ("nonexistent_file.txt" , "new_name.txt" ))
864
- assert expected_http_error (e , 404 , expected_message = "File or directory does not exist: nonexistent_file.txt" )
864
+ assert expected_http_error (
865
+ e , 404 , expected_message = "File or directory does not exist: nonexistent_file.txt"
866
+ )
865
867
866
868
# Test with non-existent directory
867
869
with pytest .raises (HTTPError ) as e :
868
870
await ensure_async (cm .rename ("nonexistent_dir" , "new_dir" ))
869
- assert expected_http_error (e , 404 , expected_message = "File or directory does not exist: nonexistent_dir" )
871
+ assert expected_http_error (
872
+ e , 404 , expected_message = "File or directory does not exist: nonexistent_dir"
873
+ )
870
874
871
875
872
876
async def test_delete_root (jp_contents_manager ):
You can’t perform that action at this time.
0 commit comments