Home / File/ test_tutorial003.py — fastapi Source File

test_tutorial003.py — fastapi Source File

Architecture documentation for test_tutorial003.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
  1fd0327d_36a6_cac6_6220_d5b6cdae4c32["test_tutorial003.py"]
  5befe8bf_65d1_d058_6b78_4a597a8488e9["pytest"]
  1fd0327d_36a6_cac6_6220_d5b6cdae4c32 --> 5befe8bf_65d1_d058_6b78_4a597a8488e9
  e83517b4_7eb1_af82_47c8_f8049fc9a041["tutorial003_py39.py"]
  1fd0327d_36a6_cac6_6220_d5b6cdae4c32 --> e83517b4_7eb1_af82_47c8_f8049fc9a041
  160008f1_e2ab_f8fb_3c2e_6f25909fa43d["get_name_with_age"]
  1fd0327d_36a6_cac6_6220_d5b6cdae4c32 --> 160008f1_e2ab_f8fb_3c2e_6f25909fa43d
  style 1fd0327d_36a6_cac6_6220_d5b6cdae4c32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import pytest

from docs_src.python_types.tutorial003_py39 import get_name_with_age


def test_get_name_with_age_pass_int():
    with pytest.raises(TypeError):
        get_name_with_age("John", 30)


def test_get_name_with_age_pass_str():
    assert get_name_with_age("John", "30") == "John is this old: 30"

Domain

Subdomains

Frequently Asked Questions

What does test_tutorial003.py do?
test_tutorial003.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_tutorial003.py?
test_tutorial003.py defines 2 function(s): test_get_name_with_age_pass_int, test_get_name_with_age_pass_str.
What does test_tutorial003.py depend on?
test_tutorial003.py imports 3 module(s): get_name_with_age, pytest, tutorial003_py39.py.
Where is test_tutorial003.py in the architecture?
test_tutorial003.py is located at tests/test_tutorial/test_python_types/test_tutorial003.py (domain: FastAPI, subdomain: Routing, directory: tests/test_tutorial/test_python_types).

Analyze Your Own Codebase

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

Try Supermodel Free