исправление

This commit is contained in:
2026-10-26 19:40:34 +03:00
parent a591243d80
commit aaab3ac8b2
37 changed files with 1749 additions and 389 deletions
+10 -4
View File
@@ -1,6 +1,6 @@
docker compose --profile tools run --rm imaging-test
Container mtusi-lab5-imaging-test-run-522cead2dfe0 Creating
Container mtusi-lab5-imaging-test-run-522cead2dfe0 Created
Container mtusi-lab5-imaging-test-run-7b65aee97073 Creating
Container mtusi-lab5-imaging-test-run-7b65aee97073 Created
test_alpha_is_white_in_jpeg_and_kept_in_webp (test_imaging.ImagingTest.test_alpha_is_white_in_jpeg_and_kept_in_webp) ... ok
test_broken_jpeg_scan_is_invalid (test_imaging.ImagingTest.test_broken_jpeg_scan_is_invalid) ... ok
test_exif_orientation_is_applied (test_imaging.ImagingTest.test_exif_orientation_is_applied) ...
@@ -10,14 +10,20 @@ test_fixture_variants (test_imaging.ImagingTest.test_fixture_variants) ...
fixture 320×200 -> thumbnail JPEG 256×160, crop JPEG 128×128, optimized WebP 320×200
ok
test_geometry (test_imaging.ImagingTest.test_geometry) ... ok
test_jpeg_header_check_matches_strict_decoder (test_imaging.ImagingTest.test_jpeg_header_check_matches_strict_decoder) ...
800 random header mutations: {'both accept': 318, 'both reject': 427, 'accepted, entropy error in worker': 55}
ok
test_limits_in_child_process (test_imaging.ImagingTest.test_limits_in_child_process) ...
36 Mpx RGBA in a child process: ok in 3.78 s with 640 MiB; MemoryError -> image_too_large with 200 MiB; timeout 0.2 s -> killed after 0.21 s; 1000 px limit -> image_too_large
36 Mpx RGBA in a child process: ok in 3.93 s with 640 MiB; MemoryError -> image_too_large with 200 MiB; timeout 0.2 s -> killed after 0.21 s; 1000 px limit -> image_too_large
ok
test_metadata_is_stripped (test_imaging.ImagingTest.test_metadata_is_stripped) ... ok
test_modes (test_imaging.ImagingTest.test_modes) ... ok
test_same_input_same_bytes (test_imaging.ImagingTest.test_same_input_same_bytes) ... ok
test_subsampling_rule_matches_turbojpeg (test_imaging.ImagingTest.test_subsampling_rule_matches_turbojpeg) ...
8208 sampling-factor combinations: API and TurboJPEG agree on every one
ok
----------------------------------------------------------------------
Ran 9 tests in 5.420s
Ran 11 tests in 6.036s
OK