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

Function test_target_parameter

core/tests/python/tests/test_display.py:79–85  ·  view source on GitHub ↗

The output from display is placed in the target element.

()

Source from the content-addressed store, hash-verified

77
78
79def test_target_parameter():
80 """
81 The output from display is placed in the target element.
82 """
83 display("hello world", target="test-element-container")
84 target = web.page.find("#test-element-container")[0]
85 assert target.innerText == "hello world"
86
87
88def test_target_parameter_with_hash():

Callers

nothing calls this directly

Calls 2

displayFunction · 0.90
findMethod · 0.45

Tested by

no test coverage detected