- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for INVALID (0.04 seconds)
-
tests/test_tutorial/test_dependencies/test_tutorial012.py
response = client.get("/items/", headers={"X-Token": "invalid"}) assert response.status_code == 400, response.text assert response.json() == {"detail": "X-Token header invalid"} def test_get_invalid_one_users(client: TestClient): response = client.get("/users/", headers={"X-Token": "invalid"}) assert response.status_code == 400, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.7K bytes - Click Count (0) -
tests/test_tutorial/test_dependencies/test_tutorial006.py
response = client.get("/items/", headers={"X-Token": "invalid"}) assert response.status_code == 400, response.text assert response.json() == {"detail": "X-Token header invalid"} def test_get_invalid_second_header(client: TestClient): response = client.get( "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"} ) assert response.status_code == 400, response.text
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 4.8K bytes - Click Count (0) -
tests/test_tutorial/test_bigger_applications/test_main.py
response = client.get("/items?token=jessica", headers={"X-Token": "invalid"}) assert response.status_code == 400 assert response.json() == {"detail": "X-Token header invalid"} def test_items_bar_with_invalid_token(client: TestClient): response = client.get("/items/bar?token=jessica", headers={"X-Token": "invalid"}) assert response.status_code == 400
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 21.3K bytes - Click Count (0) -
tests/test_tutorial/test_dataclasses/test_tutorial001.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 4.6K bytes - Click Count (0) -
tests/test_tutorial/test_schema_extra_example/test_tutorial005.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 6.1K bytes - Click Count (0) -
fastapi/exceptions.py
file: str line: int class HTTPException(StarletteHTTPException): """ An HTTP exception you can raise in your own code to show errors to the client. This is for client errors, invalid authentication, invalid data, etc. Not for server errors in your code. Read more about it in the [FastAPI docs for Handling Errors](https://fastapi.tiangolo.com/tutorial/handling-errors/). ## ExampleCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 6.8K bytes - Click Count (0) -
tests/test_tutorial/test_encoder/test_tutorial001.py
"detail": [ { "loc": ["body", "timestamp"], "msg": "Input should be a valid datetime or date, invalid character in year", "type": "datetime_from_date_parsing", "input": "not a date", "ctx": {"error": "invalid character in year"}, } ] } assert "345" not in fake_db def test_openapi_schema(client: TestClient):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 6.7K bytes - Click Count (0) -
tests/test_tutorial/test_query_param_models/test_tutorial002.py
} def test_query_param_model_invalid(client: TestClient): response = client.get( "/items/", params={ "limit": 150, "offset": -1, "order_by": "invalid", }, ) assert response.status_code == 422 assert response.json() == snapshot( { "detail": [ { "type": "less_than_equal",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 8K bytes - Click Count (0) -
tests/test_tutorial/test_query_param_models/test_tutorial001.py
} def test_query_param_model_invalid(client: TestClient): response = client.get( "/items/", params={ "limit": 150, "offset": -1, "order_by": "invalid", }, ) assert response.status_code == 422 assert response.json() == snapshot( { "detail": [ { "type": "less_than_equal",
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 7.8K bytes - Click Count (0) -
tests/test_response_model_as_return_annotation.py
}, } }, "/response_model-no_annotation-return_invalid_dict": { "get": { "summary": "Response Model No Annotation Return Invalid Dict", "operationId": "response_model_no_annotation_return_invalid_dict_response_model_no_annotation_return_invalid_dict_get", "responses": { "200": {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 47.7K bytes - Click Count (0)