MCPcopy Index your code
hub / github.com/pyscript/pyscript / test_simple_display

Function test_simple_display

core/tests/python/tests/test_display.py:52–62  ·  view source on GitHub ↗

Test the display function with a simple string.

()

Source from the content-addressed store, hash-verified

50
51
52async def test_simple_display():
53 """
54 Test the display function with a simple string.
55 """
56 display("Hello, world")
57 container = await get_display_container()
58 assert len(container.children) == 1, "Expected one child in the display container."
59 assert (
60 container.children[0].tagName == "DIV"
61 ), "Expected a div element in the display container."
62 assert container.children[0].innerHTML == "Hello, world"
63
64
65async def test_consecutive_display():

Callers

nothing calls this directly

Calls 2

displayFunction · 0.90
get_display_containerFunction · 0.85

Tested by

no test coverage detected