(page: Page)
| 25 | |
| 26 | |
| 27 | async 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") |
nothing calls this directly
no test coverage detected