Home / Function/ test_post_body_example() — fastapi Function Reference

test_post_body_example() — fastapi Function Reference

Architecture documentation for the test_post_body_example() function in test_tutorial003.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  381744df_01af_de9b_97d4_c1604878f9d7["test_post_body_example()"]
  b337df2e_65ee_b0ee_6d9c_b4ae6d22db79["test_tutorial003.py"]
  381744df_01af_de9b_97d4_c1604878f9d7 -->|defined in| b337df2e_65ee_b0ee_6d9c_b4ae6d22db79
  style 381744df_01af_de9b_97d4_c1604878f9d7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_schema_extra_example/test_tutorial003.py lines 26–36

def test_post_body_example(client: TestClient):
    response = client.put(
        "/items/5",
        json={
            "name": "Foo",
            "description": "A very nice Item",
            "price": 35.4,
            "tax": 3.2,
        },
    )
    assert response.status_code == 200

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free