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

Function test_append_true

core/tests/python/tests/test_display.py:145–156  ·  view source on GitHub ↗

Explicit append flag as true should append to the expected container element.

()

Source from the content-addressed store, hash-verified

143
144
145async def test_append_true():
146 """
147 Explicit append flag as true should append to the expected container element.
148 """
149 display("item 1", append=True)
150 display("item 2", append=True)
151 container = await get_display_container()
152 assert (
153 len(container.children) == 2
154 ), "Expected two children in the display container."
155 assert container.children[0].innerHTML == "item 1"
156 assert container.children[1].innerHTML == "item 2"
157
158
159async def test_append_false():

Callers

nothing calls this directly

Calls 2

displayFunction · 0.90
get_display_containerFunction · 0.85

Tested by

no test coverage detected