test_max_age_invalid_str() — requests Function Reference
Architecture documentation for the test_max_age_invalid_str() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD aa19aa21_f21a_279d_9eb1_d110351c7e51["test_max_age_invalid_str()"] a240c965_a4cb_2b4c_25b0_a30cd0a4c80d["TestMorselToCookieMaxAge"] aa19aa21_f21a_279d_9eb1_d110351c7e51 -->|defined in| a240c965_a4cb_2b4c_25b0_a30cd0a4c80d style aa19aa21_f21a_279d_9eb1_d110351c7e51 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 2473–2479
def test_max_age_invalid_str(self):
"""Test case where a invalid max age is passed."""
morsel = Morsel()
morsel["max-age"] = "woops"
with pytest.raises(TypeError):
morsel_to_cookie(morsel)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_max_age_invalid_str() do?
test_max_age_invalid_str() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_max_age_invalid_str() defined?
test_max_age_invalid_str() is defined in tests/test_requests.py at line 2473.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free