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

Function test

core/tests/javascript/workers/test.py:4–13  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

2
3
4async def test(name):
5 # retrieve sync utilities from the named worker
6 named = await workers[name]
7
8 # invoke the runtime_version __export__ + show it
9 version = await named.runtime_version()
10 document.body.append(version)
11
12 # flag the expectations around name done
13 document.documentElement.classList.add(name)

Callers 4

js_tests.spec.jsFile · 0.90
index.spec.jsFile · 0.90

Calls 2

appendMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected