Home / Function/ test_cookie_pass_extra_list() — fastapi Function Reference

test_cookie_pass_extra_list() — fastapi Function Reference

Architecture documentation for the test_cookie_pass_extra_list() function in test_query_cookie_header_model_extra_params.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  700f05be_7fc9_a2a6_f1bd_1f45a761b9d0["test_cookie_pass_extra_list()"]
  b9f7fa37_3873_9081_9fff_0162c3bf7d84["test_query_cookie_header_model_extra_params.py"]
  700f05be_7fc9_a2a6_f1bd_1f45a761b9d0 -->|defined in| b9f7fa37_3873_9081_9fff_0162c3bf7d84
  style 700f05be_7fc9_a2a6_f1bd_1f45a761b9d0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_query_cookie_header_model_extra_params.py lines 94–105

def test_cookie_pass_extra_list():
    client = TestClient(app)
    client.cookies = [
        ("param", "123"),
        ("param2", "456"),  # Pass a list of values as extra parameter
        ("param2", "789"),
    ]
    resp = client.get("/cookie")
    assert resp.status_code == 200
    resp_json = resp.json()
    assert "param2" in resp_json
    assert resp_json["param2"] == "789"  # Cookies only keep the last value

Domain

Subdomains

Frequently Asked Questions

What does test_cookie_pass_extra_list() do?
test_cookie_pass_extra_list() is a function in the fastapi codebase, defined in tests/test_query_cookie_header_model_extra_params.py.
Where is test_cookie_pass_extra_list() defined?
test_cookie_pass_extra_list() is defined in tests/test_query_cookie_header_model_extra_params.py at line 94.

Analyze Your Own Codebase

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

Try Supermodel Free