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

Method test_context_manager

impit-python/test/basic_client_test.py:100–103  ·  view source on GitHub ↗
(self, browser: Browser)

Source from the content-addressed store, hash-verified

98 assert resp.status_code == 200 if protocol == 'https://' else resp.status_code == 301
99
100 def test_context_manager(self, browser: Browser) -> None:
101 with Client(browser=browser) as impit:
102 resp = impit.get(get_httpbin_url('/get'))
103 assert resp.status_code == 200
104
105 def test_boringssl_based_server(self, browser: Browser) -> None:
106 impit = Client(browser=browser)

Callers

nothing calls this directly

Calls 3

ClientClass · 0.90
get_httpbin_urlFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected