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

Method test_basic_requests

impit-python/test/async_client_test.py:84–88  ·  view source on GitHub ↗
(self, protocol: str, browser: Browser)

Source from the content-addressed store, hash-verified

82 ['http://', 'https://'],
83 )
84 async def test_basic_requests(self, protocol: str, browser: Browser) -> None:
85 impit = AsyncClient(browser=browser)
86
87 resp = await impit.get(f'{protocol}apify.com')
88 assert resp.status_code == 200 if protocol == 'https://' else resp.status_code == 301
89
90 @pytest.mark.asyncio
91 async def test_context_manager(self, browser: Browser) -> None:

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
AsyncClientClass · 0.90

Tested by

no test coverage detected