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

Function test_consecutive_display

core/tests/python/tests/test_display.py:65–76  ·  view source on GitHub ↗

Display order should be preserved.

()

Source from the content-addressed store, hash-verified

63
64
65async def test_consecutive_display():
66 """
67 Display order should be preserved.
68 """
69 display("hello 1")
70 display("hello 2")
71 container = await get_display_container()
72 assert (
73 len(container.children) == 2
74 ), "Expected two children in the display container."
75 assert container.children[0].innerHTML == "hello 1"
76 assert container.children[1].innerHTML == "hello 2"
77
78
79def test_target_parameter():

Callers

nothing calls this directly

Calls 2

displayFunction · 0.90
get_display_containerFunction · 0.85

Tested by

no test coverage detected