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

Method test_headers_work

impit-python/test/async_client_test.py:105–110  ·  view source on GitHub ↗
(self, browser: Browser)

Source from the content-addressed store, hash-verified

103
104 @pytest.mark.asyncio
105 async def test_headers_work(self, browser: Browser) -> None:
106 impit = AsyncClient(browser=browser)
107
108 response = await impit.get(get_httpbin_url('/headers'), headers={'Impit-Test': 'foo'})
109 assert response.status_code == 200
110 assert json.loads(response.text)['headers']['Impit-Test'] == 'foo'
111
112 @pytest.mark.asyncio
113 async def test_client_wide_headers_work(self, browser: Browser) -> None:

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
AsyncClientClass · 0.90
get_httpbin_urlFunction · 0.85

Tested by

no test coverage detected