Home / File/ test_return_none_stringified_annotations.py — fastapi Source File

test_return_none_stringified_annotations.py — fastapi Source File

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

File python FastAPI Applications 3 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  47df1b70_e587_fd88_8bde_eb48af499632["test_return_none_stringified_annotations.py"]
  8e160bcc_cf54_df55_9887_22e5df7af3da["http"]
  47df1b70_e587_fd88_8bde_eb48af499632 --> 8e160bcc_cf54_df55_9887_22e5df7af3da
  534f6e44_61b8_3c38_8b89_6934a6df9802["__init__.py"]
  47df1b70_e587_fd88_8bde_eb48af499632 --> 534f6e44_61b8_3c38_8b89_6934a6df9802
  a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"]
  47df1b70_e587_fd88_8bde_eb48af499632 --> a7c04dee_ee23_5891_b185_47ff6bed036d
  style 47df1b70_e587_fd88_8bde_eb48af499632 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import http

from fastapi import FastAPI
from fastapi.testclient import TestClient


def test_no_content():
    app = FastAPI()

    @app.get("/no-content", status_code=http.HTTPStatus.NO_CONTENT)
    def return_no_content() -> "None":
        return

    client = TestClient(app)
    response = client.get("/no-content")
    assert response.status_code == http.HTTPStatus.NO_CONTENT, response.text
    assert not response.content

Domain

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does test_return_none_stringified_annotations.py do?
test_return_none_stringified_annotations.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_return_none_stringified_annotations.py?
test_return_none_stringified_annotations.py defines 1 function(s): test_no_content.
What does test_return_none_stringified_annotations.py depend on?
test_return_none_stringified_annotations.py imports 3 module(s): __init__.py, http, testclient.py.
Where is test_return_none_stringified_annotations.py in the architecture?
test_return_none_stringified_annotations.py is located at tests/test_return_none_stringified_annotations.py (domain: FastAPI, subdomain: Applications, directory: tests).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free