test_path_operation_img() — fastapi Function Reference
Architecture documentation for the test_path_operation_img() function in test_tutorial002.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 98b4d178_7413_e345_a69b_9820d38afe31["test_path_operation_img()"] 71bd14d8_9f05_d098_7264_8cede8ecf8be["test_tutorial002.py"] 98b4d178_7413_e345_a69b_9820d38afe31 -->|defined in| 71bd14d8_9f05_d098_7264_8cede8ecf8be style 98b4d178_7413_e345_a69b_9820d38afe31 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_additional_responses/test_tutorial002.py lines 33–39
def test_path_operation_img(client: TestClient):
shutil.copy("./docs/en/docs/img/favicon.png", "./image.png")
response = client.get("/items/foo?img=1")
assert response.status_code == 200, response.text
assert response.headers["Content-Type"] == "image/png"
assert len(response.content)
os.remove("./image.png")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_path_operation_img() do?
test_path_operation_img() is a function in the fastapi codebase, defined in tests/test_tutorial/test_additional_responses/test_tutorial002.py.
Where is test_path_operation_img() defined?
test_path_operation_img() is defined in tests/test_tutorial/test_additional_responses/test_tutorial002.py at line 33.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free