Home / File/ test_tutorial008.py — fastapi Source File

test_tutorial008.py — fastapi Source File

Architecture documentation for test_tutorial008.py, a python file in the fastapi codebase. 4 imports, 0 dependents.

File python FastAPI Applications 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  f0ebc414_189e_7d6b_19d2_75741fb307b4["test_tutorial008.py"]
  b3e303a2_3f2d_638d_930c_3a5dcc2f5a42["pathlib"]
  f0ebc414_189e_7d6b_19d2_75741fb307b4 --> b3e303a2_3f2d_638d_930c_3a5dcc2f5a42
  a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"]
  f0ebc414_189e_7d6b_19d2_75741fb307b4 --> a7c04dee_ee23_5891_b185_47ff6bed036d
  9ade36af_8a93_469f_1f69_2b281701b247["__init__.py"]
  f0ebc414_189e_7d6b_19d2_75741fb307b4 --> 9ade36af_8a93_469f_1f69_2b281701b247
  94d8ec28_8437_b1b4_73f7_71ecb60c2aec["tutorial008_py39.py"]
  f0ebc414_189e_7d6b_19d2_75741fb307b4 --> 94d8ec28_8437_b1b4_73f7_71ecb60c2aec
  style f0ebc414_189e_7d6b_19d2_75741fb307b4 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 tutorial008_py39
from docs_src.custom_response.tutorial008_py39 import app

client = TestClient(app)


def test_get(tmp_path: Path):
    file_path: Path = tmp_path / "large-video-file.mp4"
    tutorial008_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

Frequently Asked Questions

What does test_tutorial008.py do?
test_tutorial008.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Applications subdomain.
What functions are defined in test_tutorial008.py?
test_tutorial008.py defines 1 function(s): test_get.
What does test_tutorial008.py depend on?
test_tutorial008.py imports 4 module(s): __init__.py, pathlib, testclient.py, tutorial008_py39.py.
Where is test_tutorial008.py in the architecture?
test_tutorial008.py is located at tests/test_tutorial/test_custom_response/test_tutorial008.py (domain: FastAPI, subdomain: Applications, 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