- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for test_schema (0.14 sec)
-
tests/test_request_params/test_path/test_required_str.py
"/required-alias-and-validation-alias/{p_val_alias}", "p_val_alias", "P Val Alias", id="required-alias-and-validation-alias", ), ], ) def test_schema(path: str, expected_name: str, expected_title: str): assert app.openapi()["paths"][path]["get"]["parameters"] == [ { "required": True, "schema": {"title": expected_title, "type": "string"},Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 2.3K bytes - Viewed (0) -
tests/test_repeated_dependency_schema.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Thu Mar 06 12:18:57 UTC 2025 - 3.2K bytes - Viewed (0) -
tests/test_enforce_once_required_parameter.py
"description": "Validation Error", }, }, "summary": "Foo Handler", } } }, } def test_schema(): response = client.get("/openapi.json") assert response.status_code == status.HTTP_200_OK actual_schema = response.json() assert actual_schema == expected_schema def test_get_invalid():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Sep 16 17:21:48 UTC 2025 - 3.3K bytes - Viewed (0)