Skip to content

Commit a883f91

Browse files
committed
Update image file validation test assertion
1 parent 2f0e725 commit a883f91

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/tools/file_editor/test_file_validation.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,5 @@ def test_validate_image_file(tmp_path):
9696

9797
assert is_binary(str(image_file))
9898

99-
# Images are not supported and should be detected as binary
100-
with pytest.raises(FileValidationError) as exc_info:
101-
editor.validate_file(image_file)
102-
103-
assert "file appears to be binary" in str(exc_info.value).lower()
99+
# Images are not supported, so no exception should be raised
100+
editor.validate_file(image_file)

0 commit comments

Comments
 (0)