Working harvesting detection, working manufacturing detection.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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
|
||||
Reference in New Issue
Block a user