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

Function test

test/18.pin_test.py:94–106  ·  view source on GitHub ↗
(server_proc: subprocess.Popen, browser: Chrome)

Source from the content-addressed store, hash-verified

92
93
94def test(server_proc: subprocess.Popen, browser: Chrome):
95 browser.get('http://localhost:8080/?app=thread_target')
96 time.sleep(2)
97 test_one_page(browser)
98 time.sleep(2)
99 percy_snapshot(browser, name='pin')
100 assert PASSED_TEXT in browser.find_element(By.ID, 'markdown-body').get_attribute('innerHTML')
101
102 browser.get('http://localhost:8080/?app=coro_target')
103 time.sleep(2)
104 test_one_page(browser)
105 time.sleep(1)
106 assert PASSED_TEXT in browser.find_element(By.ID, 'markdown-body').get_attribute('innerHTML')
107
108
109def start_test_server():

Callers

nothing calls this directly

Calls 2

test_one_pageFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…