MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / test

Function test

test/16.path_deploy.py:16–26  ·  view source on GitHub ↗
(server_proc: subprocess.Popen, browser: Chrome)

Source from the content-addressed store, hash-verified

14
15
16def test(server_proc: subprocess.Popen, browser: Chrome):
17 time.sleep(10)
18 percy_snapshot(browser, name='path_deploy_1')
19 browser.get('http://localhost:8080/')
20 time.sleep(2)
21 page_html = browser.find_element(By.TAG_NAME, 'body').get_attribute('innerHTML')
22 print(page_html)
23 for f in ['bmi', 'bokeh_app', 'chat_room', 'input_usage', 'output_usage', 'set_env_demo']:
24 assert f in page_html, f'{f} not in page'
25
26 time.sleep(2)
27
28
29def start_test_server():

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…