test_body_float() — fastapi Function Reference
Architecture documentation for the test_body_float() function in test_tutorial001.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD a7f4e70d_4482_2f39_e254_e35c9064f4e0["test_body_float()"] 384ebf37_bf33_dd11_7410_101f39082f41["test_tutorial001.py"] a7f4e70d_4482_2f39_e254_e35c9064f4e0 -->|defined in| 384ebf37_bf33_dd11_7410_101f39082f41 style a7f4e70d_4482_2f39_e254_e35c9064f4e0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_body/test_tutorial001.py lines 25–33
def test_body_float(client: TestClient):
response = client.post("/items/", json={"name": "Foo", "price": 50.5})
assert response.status_code == 200
assert response.json() == {
"name": "Foo",
"price": 50.5,
"description": None,
"tax": None,
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_body_float() do?
test_body_float() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body/test_tutorial001.py.
Where is test_body_float() defined?
test_body_float() is defined in tests/test_tutorial/test_body/test_tutorial001.py at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free