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

Function test_response_constructor_with_status

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

Source from the content-addressed store, hash-verified

13
14
15def test_response_constructor_with_status() -> None:
16 # Create a new response object with a specific status code
17 response = Response(404)
18
19 assert response.status_code == 404
20 assert response.content == b''
21 assert response.text == ''
22
23 assert response.reason_phrase == 'Not Found'
24
25
26def test_response_constructor_with_content() -> 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…