MCPcopy Index your code
hub / github.com/reactive-python/reactpy / test_image_from_bytes

Function test_image_from_bytes

src/py/reactpy/tests/test_widgets.py:26–30  ·  view source on GitHub ↗
(display: DisplayFixture)

Source from the content-addressed store, hash-verified

24
25
26async def test_image_from_bytes(display: DisplayFixture):
27 src = IMAGE_SRC_BYTES
28 await display.show(lambda: reactpy.widgets.image("svg", src, {"id": "a-circle-1"}))
29 client_img = await display.page.wait_for_selector("#a-circle-1")
30 assert BASE64_IMAGE_SRC in (await client_img.get_attribute("src"))
31
32
33async def test_use_linked_inputs(display: DisplayFixture):

Callers

nothing calls this directly

Calls 1

showMethod · 0.80

Tested by

no test coverage detected