MCPcopy
hub / github.com/idealo/imagededup / test_encode_image_valerror_wrong_input

Function test_encode_image_valerror_wrong_input

tests/test_hashing.py:118–121  ·  view source on GitHub ↗
(hasher)

Source from the content-addressed store, hash-verified

116
117
118def test_encode_image_valerror_wrong_input(hasher):
119 pil_im = Image.open(PATH_SINGLE_IMAGE)
120 with pytest.raises(ValueError):
121 hasher.encode_image(image_file=pil_im)
122
123
124def test_encode_image_valerror_wrong_input_array(hasher):

Callers

nothing calls this directly

Calls 1

encode_imageMethod · 0.45

Tested by

no test coverage detected