Home / Function/ test_items_6() — fastapi Function Reference

test_items_6() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6fce29d1_41ec_fd65_e1f7_1885f1ffb219["test_items_6()"]
  4635dc70_c39c_9acd_d962_f94f64b32b98["test_tutorial001.py"]
  6fce29d1_41ec_fd65_e1f7_1885f1ffb219 -->|defined in| 4635dc70_c39c_9acd_d962_f94f64b32b98
  style 6fce29d1_41ec_fd65_e1f7_1885f1ffb219 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_body_fields/test_tutorial001.py lines 35–56

def test_items_6(client: TestClient):
    response = client.put(
        "/items/6",
        json={
            "item": {
                "name": "Bar",
                "price": 0.2,
                "description": "Some bar",
                "tax": "5.4",
            }
        },
    )
    assert response.status_code == 200
    assert response.json() == {
        "item_id": 6,
        "item": {
            "name": "Bar",
            "price": 0.2,
            "description": "Some bar",
            "tax": 5.4,
        },
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free