- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_response_headers (0.6 sec)
-
tests/test_tutorial/test_middleware/test_tutorial001.py
from fastapi.testclient import TestClient from docs_src.middleware.tutorial001_py39 import app client = TestClient(app) def test_response_headers(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert "X-Process-Time" in response.headers def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 604 bytes - Viewed (0)