Home / File/ test_tutorial002.py — fastapi Source File

test_tutorial002.py — fastapi Source File

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

File python FastAPI Applications 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  a40fe87c_a309_9556_7af4_108ad2c31306["test_tutorial002.py"]
  a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"]
  a40fe87c_a309_9556_7af4_108ad2c31306 --> a7c04dee_ee23_5891_b185_47ff6bed036d
  fb9e51d7_dab5_505c_b411_fa3f94a17e93["tutorial002_py39.py"]
  a40fe87c_a309_9556_7af4_108ad2c31306 --> fb9e51d7_dab5_505c_b411_fa3f94a17e93
  style a40fe87c_a309_9556_7af4_108ad2c31306 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

from fastapi.testclient import TestClient

from docs_src.response_cookies.tutorial002_py39 import app

client = TestClient(app)


def test_path_operation():
    response = client.post("/cookie-and-object/")
    assert response.status_code == 200, response.text
    assert response.json() == {"message": "Come to the dark side, we have cookies"}
    assert response.cookies["fakesession"] == "fake-cookie-session-value"

Domain

Subdomains

Frequently Asked Questions

What does test_tutorial002.py do?
test_tutorial002.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_tutorial002.py?
test_tutorial002.py defines 1 function(s): test_path_operation.
What does test_tutorial002.py depend on?
test_tutorial002.py imports 2 module(s): testclient.py, tutorial002_py39.py.
Where is test_tutorial002.py in the architecture?
test_tutorial002.py is located at tests/test_tutorial/test_response_cookies/test_tutorial002.py (domain: FastAPI, subdomain: Applications, directory: tests/test_tutorial/test_response_cookies).

Analyze Your Own Codebase

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

Try Supermodel Free