test_create_existing_item() — fastapi Function Reference
Architecture documentation for the test_create_existing_item() function in test_main.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 51cde8e8_c436_6e9a_00d8_a1fdcf7a1b67["test_create_existing_item()"] 4510050d_db23_2372_d56a_62f40b3284b9["test_main.py"] 51cde8e8_c436_6e9a_00d8_a1fdcf7a1b67 -->|defined in| 4510050d_db23_2372_d56a_62f40b3284b9 style 51cde8e8_c436_6e9a_00d8_a1fdcf7a1b67 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
docs_src/app_testing/app_b_an_py310/test_main.py lines 54–65
def test_create_existing_item():
response = client.post(
"/items/",
headers={"X-Token": "coneofsilence"},
json={
"id": "foo",
"title": "The Foo ID Stealers",
"description": "There goes my stealer",
},
)
assert response.status_code == 409
assert response.json() == {"detail": "Item already exists"}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_create_existing_item() do?
test_create_existing_item() is a function in the fastapi codebase, defined in docs_src/app_testing/app_b_an_py310/test_main.py.
Where is test_create_existing_item() defined?
test_create_existing_item() is defined in docs_src/app_testing/app_b_an_py310/test_main.py at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free