File size: 375 Bytes
717c92d | 1 2 3 4 5 6 7 8 9 10 11 12 13 | # test_analyze.py
from imgshape.analyze import analyze_type
def test_analyze_type():
result = analyze_type("assets/sample_images/image_created_with_a_mobile_phone.png")
assert isinstance(result, dict)
assert "entropy" in result
assert "guess_type" in result
print(f"✅ Analyze Test Passed: {result}")
if __name__ == "__main__":
test_analyze_type()
|