test_tutorial009.py — fastapi Source File
Architecture documentation for test_tutorial009.py, a python file in the fastapi codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f828d37f_ca07_8067_c29d_e8ff61f19376["test_tutorial009.py"] b3e303a2_3f2d_638d_930c_3a5dcc2f5a42["pathlib"] f828d37f_ca07_8067_c29d_e8ff61f19376 --> b3e303a2_3f2d_638d_930c_3a5dcc2f5a42 a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"] f828d37f_ca07_8067_c29d_e8ff61f19376 --> a7c04dee_ee23_5891_b185_47ff6bed036d 9ade36af_8a93_469f_1f69_2b281701b247["__init__.py"] f828d37f_ca07_8067_c29d_e8ff61f19376 --> 9ade36af_8a93_469f_1f69_2b281701b247 b9cfe116_0813_0bc4_24de_80d0caf0c521["tutorial009_py39.py"] f828d37f_ca07_8067_c29d_e8ff61f19376 --> b9cfe116_0813_0bc4_24de_80d0caf0c521 style f828d37f_ca07_8067_c29d_e8ff61f19376 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from pathlib import Path
from fastapi.testclient import TestClient
from docs_src.custom_response import tutorial009_py39
from docs_src.custom_response.tutorial009_py39 import app
client = TestClient(app)
def test_get(tmp_path: Path):
file_path: Path = tmp_path / "large-video-file.mp4"
tutorial009_py39.some_file_path = str(file_path)
test_content = b"Fake video bytes"
file_path.write_bytes(test_content)
response = client.get("/")
assert response.content == test_content
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does test_tutorial009.py do?
test_tutorial009.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Routing subdomain.
What functions are defined in test_tutorial009.py?
test_tutorial009.py defines 1 function(s): test_get.
What does test_tutorial009.py depend on?
test_tutorial009.py imports 4 module(s): __init__.py, pathlib, testclient.py, tutorial009_py39.py.
Where is test_tutorial009.py in the architecture?
test_tutorial009.py is located at tests/test_tutorial/test_custom_response/test_tutorial009.py (domain: FastAPI, subdomain: Routing, directory: tests/test_tutorial/test_custom_response).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free