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

Function test_response_constructor_with_headers

impit-python/test/response_test.py:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def test_response_constructor_with_headers() -> None:
36 # Create a new response object with headers
37 response = Response(200, headers={'Content-Type': 'application/json'})
38
39 assert response.status_code == 200
40 assert response.headers['Content-Type'] == 'application/json'
41
42
43def test_response_headers_encoding() -> None:

Callers

nothing calls this directly

Calls 1

ResponseClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…