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_tutorial003.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  2587aaed_5cdd_81f2_6b7e_ac1bd4ed0286["test_put_only_required()"]
  0a70e8db_9ada_0d42_b3cc_5afb736e0b21["test_tutorial003.py"]
  2587aaed_5cdd_81f2_6b7e_ac1bd4ed0286 -->|defined in| 0a70e8db_9ada_0d42_b3cc_5afb736e0b21
  style 2587aaed_5cdd_81f2_6b7e_ac1bd4ed0286 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_body/test_tutorial003.py lines 39–51

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_tutorial003.py.
Where is test_put_only_required() defined?
test_put_only_required() is defined in tests/test_tutorial/test_body/test_tutorial003.py at line 39.

Analyze Your Own Codebase

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

Try Supermodel Free