test_post_large_file() — fastapi Function Reference
Architecture documentation for the test_post_large_file() function in test_tutorial001.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 81956f7b_5acf_781b_9eea_4588842f16d6["test_post_large_file()"] f315bde3_0464_f9b6_cb1f_30e31d3c2c05["test_tutorial001.py"] 81956f7b_5acf_781b_9eea_4588842f16d6 -->|defined in| f315bde3_0464_f9b6_cb1f_30e31d3c2c05 style 81956f7b_5acf_781b_9eea_4588842f16d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_request_files/test_tutorial001.py lines 62–70
def test_post_large_file(tmp_path, client: TestClient):
default_pydantic_max_size = 2**16
path = tmp_path / "test.txt"
path.write_bytes(b"x" * (default_pydantic_max_size + 1))
with path.open("rb") as file:
response = client.post("/files/", files={"file": file})
assert response.status_code == 200, response.text
assert response.json() == {"file_size": default_pydantic_max_size + 1}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_post_large_file() do?
test_post_large_file() is a function in the fastapi codebase, defined in tests/test_tutorial/test_request_files/test_tutorial001.py.
Where is test_post_large_file() defined?
test_post_large_file() is defined in tests/test_tutorial/test_request_files/test_tutorial001.py at line 62.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free