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