- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 269 for 422 (0.02 sec)
-
tests/test_tutorial/test_bigger_applications/test_main.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 24.6K bytes - Viewed (0) -
tests/test_annotated.py
("/required?foo=bar", 200, {"foo": "bar"}), ("/required", 422, foo_is_missing), ("/required?foo=", 422, foo_is_short), ("/multiple?foo=bar", 200, {"foo": "bar"}), ("/multiple", 422, foo_is_missing), ("/multiple?foo=", 422, foo_is_short), ("/unrelated?foo=bar", 200, {"foo": "bar"}), ("/unrelated", 422, foo_is_missing), ], )
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 10.2K bytes - Viewed (0) -
tests/test_query.py
from dirty_equals import IsDict 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() == IsDict( { "detail": [ { "type": "missing", "loc": ["query", "query"],
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 11.4K bytes - Viewed (0) -
tests/test_application.py
"200": { "description": "Successful Response", "content": {"application/json": {"schema": {}}}, }, "422": { "description": "Validation Error", "content": { "application/json": { "schema": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 21:56:59 UTC 2024 - 52.2K bytes - Viewed (0) -
tests/test_tuples.py
response = client.post("/model-with-tuple/", json=data) assert response.status_code == 422, response.text data = {"items": [["foo", "bar"], ["baz"]]} response = client.post("/model-with-tuple/", json=data) assert response.status_code == 422, response.text def test_tuple_with_model_valid(): data = [{"x": 1, "y": 2}, {"x": 3, "y": 4}]
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 11.8K bytes - Viewed (0) -
tests/test_include_router_defaults_overrides.py
"application/json": {"schema": {}} }, }, "422": { "description": "Validation Error", "content": { "application/json": {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 358.6K bytes - Viewed (0) -
tests/test_dependency_overrides.py
async def overrider_dependency_with_sub(msg: dict = Depends(overrider_sub_dependency)): return msg def test_main_depends(): response = client.get("/main-depends/") assert response.status_code == 422 assert response.json() == IsDict( { "detail": [ { "type": "missing", "loc": ["query", "q"], "msg": "Field required",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 15.4K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_an.py
@needs_pydanticv2 def test_post_body_extra_form(client: TestClient): response = client.post( "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"} ) assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "extra_forbidden", "loc": ["body", "extra"], "msg": "Extra inputs are not permitted",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_pv1.py
@needs_pydanticv1 def test_post_body_extra_form(client: TestClient): response = client.post( "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"} ) assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "value_error.extra", "loc": ["body", "extra"], "msg": "extra fields not permitted", }
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6K bytes - Viewed (0) -
tests/test_tutorial/test_request_form_models/test_tutorial002_an_py39.py
@needs_pydanticv2 @needs_py39 def test_post_body_extra_form(client: TestClient): response = client.post( "/login/", data={"username": "Foo", "password": "secret", "extra": "extra"} ) assert response.status_code == 422 assert response.json() == { "detail": [ { "type": "extra_forbidden", "loc": ["body", "extra"], "msg": "Extra inputs are not permitted",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Sep 06 17:31:18 UTC 2024 - 6.3K bytes - Viewed (0)