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):
857857async def test_rename_nonexistent (jp_contents_manager ):
858858 """Test renaming a non-existent file/directory returns 404 error"""
859859 cm = jp_contents_manager
860-
860+
861861 # Test with non-existent file
862862 with pytest .raises (HTTPError ) as e :
863863 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+ )
865867
866868 # Test with non-existent directory
867869 with pytest .raises (HTTPError ) as e :
868870 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+ )
870874
871875
872876async def test_delete_root (jp_contents_manager ):
You can’t perform that action at this time.
0 commit comments