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

Method test_basic_requests

impit-python/test/basic_client_test.py:94–98  ·  view source on GitHub ↗
(self, protocol: str, browser: Browser)

Source from the content-addressed store, hash-verified

92 ['http://', 'https://'],
93 )
94 def test_basic_requests(self, protocol: str, browser: Browser) -> None:
95 impit = Client(browser=browser)
96
97 resp = impit.get(f'{protocol}apify.com')
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:

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
ClientClass · 0.90

Tested by

no test coverage detected