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

Method test_headers_work

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

Source from the content-addressed store, hash-verified

50 assert resp.encoding == 'utf-8'
51
52 def test_headers_work(self) -> None:
53 response = impit.get(get_httpbin_url('/headers'), headers={'Impit-Test': 'foo'})
54 assert response.status_code == 200
55 assert response.json()['headers']['Impit-Test'] == 'foo'
56
57 def test_cookies_nonstandard(self) -> None:
58 cookies_jar = CookieJar()

Callers

nothing calls this directly

Calls 3

get_httpbin_urlFunction · 0.85
getMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected