test_put_forbidden() — fastapi Function Reference
Architecture documentation for the test_put_forbidden() function in test_main.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD fc4a3f41_7668_2fb6_ac50_2e4aa516eba6["test_put_forbidden()"] eb102b62_f4e8_8f47_de84_f7b446fa16b3["test_main.py"] fc4a3f41_7668_2fb6_ac50_2e4aa516eba6 -->|defined in| eb102b62_f4e8_8f47_de84_f7b446fa16b3 style fc4a3f41_7668_2fb6_ac50_2e4aa516eba6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_bigger_applications/test_main.py lines 248–253
def test_put_forbidden(client: TestClient):
response = client.put(
"/items/bar?token=jessica", headers={"X-Token": "fake-super-secret-token"}
)
assert response.status_code == 403, response.text
assert response.json() == {"detail": "You can only update the item: plumbus"}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_put_forbidden() do?
test_put_forbidden() is a function in the fastapi codebase, defined in tests/test_tutorial/test_bigger_applications/test_main.py.
Where is test_put_forbidden() defined?
test_put_forbidden() is defined in tests/test_tutorial/test_bigger_applications/test_main.py at line 248.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free