Home / File/ test_main_a.py — fastapi Source File

test_main_a.py — fastapi Source File

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

File python FastAPI Routing 3 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  d0559b96_3c27_6407_59b2_3d00923ab86c["test_main_a.py"]
  a7f4e7b0_9725_db90_5cbc_7ca8211b323a["inline_snapshot"]
  d0559b96_3c27_6407_59b2_3d00923ab86c --> a7f4e7b0_9725_db90_5cbc_7ca8211b323a
  0752ba7f_c351_0ed4_ae12_3fba071e67bc["test_main.py"]
  d0559b96_3c27_6407_59b2_3d00923ab86c --> 0752ba7f_c351_0ed4_ae12_3fba071e67bc
  c231802d_16c7_e967_33d4_adebca1597a8["test_read_main"]
  d0559b96_3c27_6407_59b2_3d00923ab86c --> c231802d_16c7_e967_33d4_adebca1597a8
  style d0559b96_3c27_6407_59b2_3d00923ab86c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

from inline_snapshot import snapshot

from docs_src.app_testing.app_a_py39.test_main import client, test_read_main


def test_main():
    test_read_main()


def test_openapi_schema():
    response = client.get("/openapi.json")
    assert response.status_code == 200, response.text
    assert response.json() == snapshot(
        {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/": {
                    "get": {
                        "responses": {
                            "200": {
                                "description": "Successful Response",
                                "content": {"application/json": {"schema": {}}},
                            }
                        },
                        "summary": "Read Main",
                        "operationId": "read_main__get",
                    }
                }
            },
        }
    )

Domain

Subdomains

Dependencies

Frequently Asked Questions

What does test_main_a.py do?
test_main_a.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_main_a.py?
test_main_a.py defines 2 function(s): test_main, test_openapi_schema.
What does test_main_a.py depend on?
test_main_a.py imports 3 module(s): inline_snapshot, test_main.py, test_read_main.
Where is test_main_a.py in the architecture?
test_main_a.py is located at tests/test_tutorial/test_testing/test_main_a.py (domain: FastAPI, subdomain: Routing, directory: tests/test_tutorial/test_testing).

Analyze Your Own Codebase

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

Try Supermodel Free