11 lines
234 B
Python
11 lines
234 B
Python
from pathlib import Path
|
|
|
|
import analyze
|
|
|
|
CORRUPT = sorted(Path("tests/images/corrupt").glob("*.png"))
|
|
|
|
|
|
def test_corrupt_images_are_skipped_gracefully():
|
|
for path in CORRUPT:
|
|
assert analyze.load_image(path) is None, path
|