test_json_decode_compatibility() — requests Function Reference
Architecture documentation for the test_json_decode_compatibility() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 39d9313b_c8e3_3981_3827_9fd6a5822584["test_json_decode_compatibility()"] 0e391504_f528_a095_5b1a_95d479a82586["TestPreparingURLs"] 39d9313b_c8e3_3981_3827_9fd6a5822584 -->|defined in| 0e391504_f528_a095_5b1a_95d479a82586 style 39d9313b_c8e3_3981_3827_9fd6a5822584 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2844–2850
def test_json_decode_compatibility(self, httpbin):
r = requests.get(httpbin("bytes/20"))
with pytest.raises(requests.exceptions.JSONDecodeError) as excinfo:
r.json()
assert isinstance(excinfo.value, RequestException)
assert isinstance(excinfo.value, JSONDecodeError)
assert r.text not in str(excinfo.value)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_json_decode_compatibility() do?
test_json_decode_compatibility() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_json_decode_compatibility() defined?
test_json_decode_compatibility() is defined in tests/test_requests.py at line 2844.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free