Home / Function/ test_post_body_q_bar_content() — fastapi Function Reference

test_post_body_q_bar_content() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7d13b1d2_3ac1_54f9_dc6b_d2f6b645989d["test_post_body_q_bar_content()"]
  bf7e7df4_4bcf_fdae_6a66_756fd2a13ccd["test_tutorial001.py"]
  7d13b1d2_3ac1_54f9_dc6b_d2f6b645989d -->|defined in| bf7e7df4_4bcf_fdae_6a66_756fd2a13ccd
  style 7d13b1d2_3ac1_54f9_dc6b_d2f6b645989d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_body_multiple_params/test_tutorial001.py lines 26–38

def test_post_body_q_bar_content(client: TestClient):
    response = client.put("/items/5?q=bar", json={"name": "Foo", "price": 50.5})
    assert response.status_code == 200
    assert response.json() == {
        "item_id": 5,
        "item": {
            "name": "Foo",
            "price": 50.5,
            "description": None,
            "tax": None,
        },
        "q": "bar",
    }

Domain

Subdomains

Frequently Asked Questions

What does test_post_body_q_bar_content() do?
test_post_body_q_bar_content() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body_multiple_params/test_tutorial001.py.
Where is test_post_body_q_bar_content() defined?
test_post_body_q_bar_content() is defined in tests/test_tutorial/test_body_multiple_params/test_tutorial001.py at line 26.

Analyze Your Own Codebase

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

Try Supermodel Free