Home / Function/ test_expires_invalid_int() — requests Function Reference

test_expires_invalid_int() — requests Function Reference

Architecture documentation for the test_expires_invalid_int() function in test_requests.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  7e82e57f_530c_ca00_930c_8063dd7925f4["test_expires_invalid_int()"]
  94658b92_5836_b58c_d7f2_88ecf129beb7["TestMorselToCookieExpires"]
  7e82e57f_530c_ca00_930c_8063dd7925f4 -->|defined in| 94658b92_5836_b58c_d7f2_88ecf129beb7
  style 7e82e57f_530c_ca00_930c_8063dd7925f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 2446–2451

    def test_expires_invalid_int(self, value, exception):
        """Test case where an invalid type is passed for expires."""
        morsel = Morsel()
        morsel["expires"] = value
        with pytest.raises(exception):
            morsel_to_cookie(morsel)

Domain

Subdomains

Frequently Asked Questions

What does test_expires_invalid_int() do?
test_expires_invalid_int() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_expires_invalid_int() defined?
test_expires_invalid_int() is defined in tests/test_requests.py at line 2446.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free