(image_file)
| 1349 | |
| 1350 | |
| 1351 | def test_embed_array_storage(image_file): |
| 1352 | array = pa.array([{"bytes": None, "path": image_file}], type=Image.pa_type) |
| 1353 | embedded_images_array = embed_array_storage(array, Image()) |
| 1354 | assert isinstance(embedded_images_array.to_pylist()[0]["path"], str) |
| 1355 | assert embedded_images_array.to_pylist()[0]["path"] == "test_image_rgb.jpg" |
| 1356 | assert isinstance(embedded_images_array.to_pylist()[0]["bytes"], bytes) |
| 1357 | |
| 1358 | |
| 1359 | def test_embed_array_storage_nested(image_file): |
nothing calls this directly
no test coverage detected