MCPcopy Index your code
hub / github.com/reactive-python/reactpy / test_run

Function test_run

src/py/reactpy/tests/test_backend/test_utils.py:27–46  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

25
26
27async def test_run(page: Page):
28 host = "127.0.0.1"
29 port = find_available_port(host)
30 url = f"http://{host}:{port}"
31
32 threading.Thread(
33 target=lambda: sync_run(
34 SampleApp,
35 host,
36 port,
37 implementation=flask_implementation,
38 ),
39 daemon=True,
40 ).start()
41
42 # give the server a moment to start
43 time.sleep(0.5)
44
45 await page.goto(url)
46 await page.wait_for_selector("#sample")

Callers

nothing calls this directly

Calls 2

find_available_portFunction · 0.90
gotoMethod · 0.80

Tested by

no test coverage detected