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

Function setup

core/tests/python/tests/test_display.py:29–38  ·  view source on GitHub ↗

Setup function for the test_display.py module. Remove all references to the display output in the DOM so we always start from a clean state.

()

Source from the content-addressed store, hash-verified

27
28
29async def setup():
30 """
31 Setup function for the test_display.py module. Remove all references to the
32 display output in the DOM so we always start from a clean state.
33 """
34 container = await get_display_container()
35 if container:
36 container.replaceChildren()
37 target_container = web.page.find("#test-element-container")[0]
38 target_container.innerHTML = ""
39
40
41async def teardown():

Callers

nothing calls this directly

Calls 2

get_display_containerFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected