Home / File/ test_tutorial009b.py — fastapi Source File

test_tutorial009b.py — fastapi Source File

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

File python FastAPI Responses 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  62b6b193_a708_a874_0da1_c084bd73a886["test_tutorial009b.py"]
  b3e303a2_3f2d_638d_930c_3a5dcc2f5a42["pathlib"]
  62b6b193_a708_a874_0da1_c084bd73a886 --> b3e303a2_3f2d_638d_930c_3a5dcc2f5a42
  a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"]
  62b6b193_a708_a874_0da1_c084bd73a886 --> a7c04dee_ee23_5891_b185_47ff6bed036d
  9ade36af_8a93_469f_1f69_2b281701b247["__init__.py"]
  62b6b193_a708_a874_0da1_c084bd73a886 --> 9ade36af_8a93_469f_1f69_2b281701b247
  45afe80c_5167_e3f2_62b4_27620f230bd6["tutorial009b_py39.py"]
  62b6b193_a708_a874_0da1_c084bd73a886 --> 45afe80c_5167_e3f2_62b4_27620f230bd6
  style 62b6b193_a708_a874_0da1_c084bd73a886 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 tutorial009b_py39
from docs_src.custom_response.tutorial009b_py39 import app

client = TestClient(app)


def test_get(tmp_path: Path):
    file_path: Path = tmp_path / "large-video-file.mp4"
    tutorial009b_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_tutorial009b.py do?
test_tutorial009b.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Responses subdomain.
What functions are defined in test_tutorial009b.py?
test_tutorial009b.py defines 1 function(s): test_get.
What does test_tutorial009b.py depend on?
test_tutorial009b.py imports 4 module(s): __init__.py, pathlib, testclient.py, tutorial009b_py39.py.
Where is test_tutorial009b.py in the architecture?
test_tutorial009b.py is located at tests/test_tutorial/test_custom_response/test_tutorial009b.py (domain: FastAPI, subdomain: Responses, 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