MCPcopy Create free account
hub / github.com/plotly/plotly.py / test_imshow_backend

Function test_imshow_backend

tests/test_optional/test_px/test_imshow.py:369–372  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

367
368@pytest.mark.parametrize("backend", ["auto", "pypng", "pil"])
369def test_imshow_backend(backend):
370 fig = px.imshow(img_rgb, binary_backend=backend)
371 decoded_img = decode_image_string(fig.data[0].source)
372 assert np.all(decoded_img == img_rgb)
373
374
375@pytest.mark.parametrize("level", [0, 3, 6, 9])

Callers

nothing calls this directly

Calls 1

decode_image_stringFunction · 0.85

Tested by

no test coverage detected