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_tutorial001.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  9d4736de_993b_ed8c_cfdd_1a214a63264e["test_post_body_example()"]
  8d8e9973_7b77_f77e_e412_381b9c56a946["test_tutorial001.py"]
  9d4736de_993b_ed8c_cfdd_1a214a63264e -->|defined in| 8d8e9973_7b77_f77e_e412_381b9c56a946
  style 9d4736de_993b_ed8c_cfdd_1a214a63264e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_schema_extra_example/test_tutorial001.py lines 24–34

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_tutorial001.py.
Where is test_post_body_example() defined?
test_post_body_example() is defined in tests/test_tutorial/test_schema_extra_example/test_tutorial001.py at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free