test_post_json_nan() — requests Function Reference
Architecture documentation for the test_post_json_nan() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 2b4d42df_edc6_5a53_a4bc_6e331dde94bd["test_post_json_nan()"] 0e391504_f528_a095_5b1a_95d479a82586["TestPreparingURLs"] 2b4d42df_edc6_5a53_a4bc_6e331dde94bd -->|defined in| 0e391504_f528_a095_5b1a_95d479a82586 style 2b4d42df_edc6_5a53_a4bc_6e331dde94bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2839–2842
def test_post_json_nan(self, httpbin):
data = {"foo": float("nan")}
with pytest.raises(requests.exceptions.InvalidJSONError):
requests.post(httpbin("post"), json=data)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_post_json_nan() do?
test_post_json_nan() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_post_json_nan() defined?
test_post_json_nan() is defined in tests/test_requests.py at line 2839.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free