Home / Function/ test_put() — fastapi Function Reference

test_put() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d5b5b5b1_4a50_5103_04c4_04d82b14ce58["test_put()"]
  fba1fa97_f7d5_78ac_779b_921680ae84e2["test_tutorial001.py"]
  d5b5b5b1_4a50_5103_04c4_04d82b14ce58 -->|defined in| fba1fa97_f7d5_78ac_779b_921680ae84e2
  style d5b5b5b1_4a50_5103_04c4_04d82b14ce58 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_body_updates/test_tutorial001.py lines 36–46

def test_put(client: TestClient):
    response = client.put(
        "/items/bar", json={"name": "Barz", "price": 3, "description": None}
    )
    assert response.json() == {
        "name": "Barz",
        "description": None,
        "price": 3,
        "tax": 10.5,
        "tags": [],
    }

Domain

Subdomains

Frequently Asked Questions

What does test_put() do?
test_put() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body_updates/test_tutorial001.py.
Where is test_put() defined?
test_put() is defined in tests/test_tutorial/test_body_updates/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