Home / Function/ test_normal_app() — fastapi Function Reference

test_normal_app() — fastapi Function Reference

Architecture documentation for the test_normal_app() function in test_tutorial001.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  385e1627_6f03_78d0_75db_5cb94b063631["test_normal_app()"]
  296c6a8b_3735_966c_aa9d_b6c236111a17["test_tutorial001.py"]
  385e1627_6f03_78d0_75db_5cb94b063631 -->|defined in| 296c6a8b_3735_966c_aa9d_b6c236111a17
  style 385e1627_6f03_78d0_75db_5cb94b063631 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_testing_dependencies/test_tutorial001.py lines 73–82

def test_normal_app(test_module: ModuleType):
    app = test_module.app
    client = test_module.client
    app.dependency_overrides = None
    response = client.get("/items/?q=foo&skip=100&limit=200")
    assert response.status_code == 200, response.text
    assert response.json() == {
        "message": "Hello Items!",
        "params": {"q": "foo", "skip": 100, "limit": 200},
    }

Domain

Subdomains

Frequently Asked Questions

What does test_normal_app() do?
test_normal_app() is a function in the fastapi codebase, defined in tests/test_tutorial/test_testing_dependencies/test_tutorial001.py.
Where is test_normal_app() defined?
test_normal_app() is defined in tests/test_tutorial/test_testing_dependencies/test_tutorial001.py at line 73.

Analyze Your Own Codebase

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

Try Supermodel Free