- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for last_query (0.06 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial005.py
200, {"q_or_cookie": None}, ), ], ) def test_get(path, cookie, expected_status, expected_response, client: TestClient): if cookie is not None: client.cookies.set("last_query", cookie) else: client.cookies.clear() response = client.get(path) assert response.status_code == expected_status assert response.json() == expected_responseRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 4.5K bytes - Viewed (0) -
tests/test_query.py
from fastapi.testclient import TestClient from .main import app client = TestClient(app) def test_query(): response = client.get("/query") assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "missing", "loc": ["query", "query"], "msg": "Field required", "input": None, } ]
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.4K bytes - Viewed (0) -
tests/test_tutorial/test_graphql/test_tutorial001.py
category=DeprecationWarning, ) from docs_src.graphql_.tutorial001_py39 import app # noqa: E402 @pytest.fixture(name="client") def get_client() -> TestClient: return TestClient(app) def test_query(client: TestClient): response = client.post("/graphql", json={"query": "{ user { name, age } }"}) assert response.status_code == 200 assert response.json() == {"data": {"user": {"name": "Patrick", "age": 100}}}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 2.2K bytes - Viewed (0)