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

Function test_image_from_string

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

Source from the content-addressed store, hash-verified

17
18
19async def test_image_from_string(display: DisplayFixture):
20 src = IMAGE_SRC_BYTES.decode()
21 await display.show(lambda: reactpy.widgets.image("svg", src, {"id": "a-circle-1"}))
22 client_img = await display.page.wait_for_selector("#a-circle-1")
23 assert BASE64_IMAGE_SRC in (await client_img.get_attribute("src"))
24
25
26async def test_image_from_bytes(display: DisplayFixture):

Callers

nothing calls this directly

Calls 1

showMethod · 0.80

Tested by

no test coverage detected