Skip to content

Commit c2a2533

Browse files
committed
Simplify test assertions for CI compatibility
1 parent 40f2855 commit c2a2533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/services/contents/test_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,12 +861,12 @@ async def test_rename_nonexistent(jp_contents_manager):
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(e, 404)
865865

866866
# Test with non-existent directory
867867
with pytest.raises(HTTPError) as e:
868868
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")
869+
assert expected_http_error(e, 404)
870870

871871

872872
async def test_delete_root(jp_contents_manager):

0 commit comments

Comments
 (0)