MCPcopy Create free account
hub / github.com/apify/impit / test_thread_server

Method test_thread_server

impit-python/test/no_client_test.py:230–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228 impit.get(redirect_url, follow_redirects=True, max_redirects=1)
229
230 def test_thread_server(self) -> None:
231 port_holder = [0]
232 thread = threading.Thread(target=thread_server, args=(port_holder,))
233 thread.start()
234 time.sleep(0.1)
235
236 response = impit.get(f'http://127.0.0.1:{port_holder[0]}/', timeout=5)
237 assert response.status_code == 200
238 thread.join()
239
240
241class TestRequestBody:

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected