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

Entity Profile

Dependency Diagram

graph TD
  a4fb45a7_4c7d_708f_e482_e848f173af76["test_post_body_example()"]
  6a23c7bb_bc43_fa1e_fdae_aca0cff0797f["test_tutorial002.py"]
  a4fb45a7_4c7d_708f_e482_e848f173af76 -->|defined in| 6a23c7bb_bc43_fa1e_fdae_aca0cff0797f
  style a4fb45a7_4c7d_708f_e482_e848f173af76 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

Analyze Your Own Codebase

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

Try Supermodel Free