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

Function test_encode_image_valerror_wrong_input_array

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

Source from the content-addressed store, hash-verified

122
123
124def test_encode_image_valerror_wrong_input_array(hasher):
125 pil_im = Image.open(PATH_SINGLE_IMAGE)
126 with pytest.raises(ValueError):
127 hasher.encode_image(image_array=pil_im)
128
129
130def test_encode_image_wrong_dim_input_array(hasher, mocker):

Callers

nothing calls this directly

Calls 1

encode_imageMethod · 0.45

Tested by

no test coverage detected