Home / Function/ test_cookie_param_model_extra() — fastapi Function Reference

test_cookie_param_model_extra() — fastapi Function Reference

Architecture documentation for the test_cookie_param_model_extra() function in test_tutorial001.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  019b63c7_f9a8_0d14_b6e6_77d63836828f["test_cookie_param_model_extra()"]
  400a29c5_d6ee_1196_b925_90c464e42d36["test_tutorial001.py"]
  019b63c7_f9a8_0d14_b6e6_77d63836828f -->|defined in| 400a29c5_d6ee_1196_b925_90c464e42d36
  style 019b63c7_f9a8_0d14_b6e6_77d63836828f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_cookie_param_models/test_tutorial001.py lines 69–77

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 == 200
    assert response.json() == snapshot(
        {"session_id": "123", "fatebook_tracker": None, "googall_tracker": None}
    )

Domain

Subdomains

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_tutorial001.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_tutorial001.py at line 69.

Analyze Your Own Codebase

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

Try Supermodel Free