test_cookie_param_model_extra() — fastapi Function Reference
Architecture documentation for the test_cookie_param_model_extra() function in test_tutorial002.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD a4c4d2c3_4938_8129_b102_fdedfa8c7fb2["test_cookie_param_model_extra()"] bf6cf455_2ef0_0aa6_ebfb_98b78d430460["test_tutorial002.py"] a4c4d2c3_4938_8129_b102_fdedfa8c7fb2 -->|defined in| bf6cf455_2ef0_0aa6_ebfb_98b78d430460 style a4c4d2c3_4938_8129_b102_fdedfa8c7fb2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_cookie_param_models/test_tutorial002.py lines 67–84
def test_cookie_param_model_extra(client: TestClient):
with client as c:
c.cookies.set("session_id", "123")
c.cookies.set("extra", "track-me-here-too")
response = c.get("/items/")
assert response.status_code == 422
assert response.json() == snapshot(
{
"detail": [
{
"type": "extra_forbidden",
"loc": ["cookie", "extra"],
"msg": "Extra inputs are not permitted",
"input": "track-me-here-too",
}
]
}
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_cookie_param_model_extra() do?
test_cookie_param_model_extra() is a function in the fastapi codebase, defined in tests/test_tutorial/test_cookie_param_models/test_tutorial002.py.
Where is test_cookie_param_model_extra() defined?
test_cookie_param_model_extra() is defined in tests/test_tutorial/test_cookie_param_models/test_tutorial002.py at line 67.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free