test_post_with_str_float() — fastapi Function Reference
Architecture documentation for the test_post_with_str_float() function in test_tutorial001.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 96f7f6b2_5a43_13d9_7bca_48ab83b750f5["test_post_with_str_float()"] 384ebf37_bf33_dd11_7410_101f39082f41["test_tutorial001.py"] 96f7f6b2_5a43_13d9_7bca_48ab83b750f5 -->|defined in| 384ebf37_bf33_dd11_7410_101f39082f41 style 96f7f6b2_5a43_13d9_7bca_48ab83b750f5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_body/test_tutorial001.py lines 36–44
def test_post_with_str_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_post_with_str_float() do?
test_post_with_str_float() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body/test_tutorial001.py.
Where is test_post_with_str_float() defined?
test_post_with_str_float() is defined in tests/test_tutorial/test_body/test_tutorial001.py at line 36.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free