Home / Function/ test_put_only_required() — fastapi Function Reference

test_put_only_required() — fastapi Function Reference

Architecture documentation for the test_put_only_required() function in test_tutorial004.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  f5e565f2_c68c_97f2_0a1a_970035d307f6["test_put_only_required()"]
  5c0d9a92_6f56_8b9b_409a_88b1ef69e272["test_tutorial004.py"]
  f5e565f2_c68c_97f2_0a1a_970035d307f6 -->|defined in| 5c0d9a92_6f56_8b9b_409a_88b1ef69e272
  style f5e565f2_c68c_97f2_0a1a_970035d307f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_body/test_tutorial004.py lines 41–53

def test_put_only_required(client: TestClient):
    response = client.put(
        "/items/123",
        json={"name": "Foo", "price": 50.1},
    )
    assert response.status_code == 200
    assert response.json() == {
        "item_id": 123,
        "name": "Foo",
        "price": 50.1,
        "description": None,
        "tax": None,
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free