test_path_operation() — fastapi Function Reference
Architecture documentation for the test_path_operation() function in test_tutorial002.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD bf5526d4_f768_234e_4b53_44843e29816e["test_path_operation()"] 6b27768d_cf10_07ce_a096_4a6bb1b19067["test_tutorial002.py"] bf5526d4_f768_234e_4b53_44843e29816e -->|defined in| 6b27768d_cf10_07ce_a096_4a6bb1b19067 style bf5526d4_f768_234e_4b53_44843e29816e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_response_directly/test_tutorial002.py lines 21–36
def test_path_operation(client: TestClient):
expected_content = """<?xml version="1.0"?>
<shampoo>
<Header>
Apply shampoo here.
</Header>
<Body>
You'll have to use soap here.
</Body>
</shampoo>
"""
response = client.get("/legacy/")
assert response.status_code == 200, response.text
assert response.headers["content-type"] == "application/xml"
assert response.text == expected_content
Domain
Subdomains
Source
Frequently Asked Questions
What does test_path_operation() do?
test_path_operation() is a function in the fastapi codebase, defined in tests/test_tutorial/test_response_directly/test_tutorial002.py.
Where is test_path_operation() defined?
test_path_operation() is defined in tests/test_tutorial/test_response_directly/test_tutorial002.py at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free