Home / Function/ test_post_body() — fastapi Function Reference

test_post_body() — fastapi Function Reference

Architecture documentation for the test_post_body() function in test_tutorial009.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  a06b85d6_e30e_7e60_d236_a2e343c257e9["test_post_body()"]
  6e86b754_c34a_5a6b_6214_2fbcb3b7c075["test_tutorial009.py"]
  a06b85d6_e30e_7e60_d236_a2e343c257e9 -->|defined in| 6e86b754_c34a_5a6b_6214_2fbcb3b7c075
  style a06b85d6_e30e_7e60_d236_a2e343c257e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_body_nested_models/test_tutorial009.py lines 21–25

def test_post_body(client: TestClient):
    data = {"2": 2.2, "3": 3.3}
    response = client.post("/index-weights/", json=data)
    assert response.status_code == 200, response.text
    assert response.json() == data

Domain

Subdomains

Frequently Asked Questions

What does test_post_body() do?
test_post_body() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body_nested_models/test_tutorial009.py.
Where is test_post_body() defined?
test_post_body() is defined in tests/test_tutorial/test_body_nested_models/test_tutorial009.py at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free