Skip to content

Commit 0eca9fe

Browse files
committed
Update image file validation test assertion
The test for image file validation now asserts that the error message does not contain 'file appears to be binary', reflecting a change in expected behavior.
1 parent 2f0e725 commit 0eca9fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tools/file_editor/test_file_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ def test_validate_image_file(tmp_path):
100100
with pytest.raises(FileValidationError) as exc_info:
101101
editor.validate_file(image_file)
102102

103-
assert "file appears to be binary" in str(exc_info.value).lower()
103+
assert "file appears to be binary" not in str(exc_info.value).lower()

0 commit comments

Comments
 (0)