Home / Function/ test_post_with_str_float_description() — fastapi Function Reference

test_post_with_str_float_description() — fastapi Function Reference

Architecture documentation for the test_post_with_str_float_description() function in test_tutorial001.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  b043f364_b6fd_1f47_0a9d_0498ccc7dcf4["test_post_with_str_float_description()"]
  384ebf37_bf33_dd11_7410_101f39082f41["test_tutorial001.py"]
  b043f364_b6fd_1f47_0a9d_0498ccc7dcf4 -->|defined in| 384ebf37_bf33_dd11_7410_101f39082f41
  style b043f364_b6fd_1f47_0a9d_0498ccc7dcf4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_body/test_tutorial001.py lines 47–57

def test_post_with_str_float_description(client: TestClient):
    response = client.post(
        "/items/", json={"name": "Foo", "price": "50.5", "description": "Some Foo"}
    )
    assert response.status_code == 200
    assert response.json() == {
        "name": "Foo",
        "price": 50.5,
        "description": "Some Foo",
        "tax": None,
    }

Domain

Subdomains

Frequently Asked Questions

What does test_post_with_str_float_description() do?
test_post_with_str_float_description() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body/test_tutorial001.py.
Where is test_post_with_str_float_description() defined?
test_post_with_str_float_description() is defined in tests/test_tutorial/test_body/test_tutorial001.py at line 47.

Analyze Your Own Codebase

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

Try Supermodel Free