Home / Function/ test_put() — fastapi Function Reference

test_put() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  50ce24ab_3cb5_510a_59a9_66f343bdbe60["test_put()"]
  eb102b62_f4e8_8f47_de84_f7b446fa16b3["test_main.py"]
  50ce24ab_3cb5_510a_59a9_66f343bdbe60 -->|defined in| eb102b62_f4e8_8f47_de84_f7b446fa16b3
  style 50ce24ab_3cb5_510a_59a9_66f343bdbe60 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_bigger_applications/test_main.py lines 240–245

def test_put(client: TestClient):
    response = client.put(
        "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
    )
    assert response.status_code == 200, response.text
    assert response.json() == {"item_id": "plumbus", "name": "The great Plumbus"}

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_bigger_applications/test_main.py.
Where is test_put() defined?
test_put() is defined in tests/test_tutorial/test_bigger_applications/test_main.py at line 240.

Analyze Your Own Codebase

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

Try Supermodel Free