- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for test_query_params_str_validations_q_too_long (0.13 seconds)
-
tests/test_tutorial/test_query_params_str_validations/test_tutorial003.py
"msg": "String should have at least 3 characters", "input": "qu", "ctx": {"min_length": 3}, } ] } def test_query_params_str_validations_q_too_long(client: TestClient): response = client.get("/items/", params={"q": "q" * 51}) assert response.status_code == 422 assert response.json() == { "detail": [ {
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 5.1K bytes - Click Count (0) -
tests/test_tutorial/test_query_params_str_validations/test_tutorial002.py
assert response.status_code == 200 assert response.json() == { "items": [{"item_id": "Foo"}, {"item_id": "Bar"}], "q": "query", } def test_query_params_str_validations_q_too_long(client: TestClient): response = client.get("/items/", params={"q": "q" * 51}) assert response.status_code == 422 assert response.json() == { "detail": [ {Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Dec 26 10:43:02 GMT 2025 - 4.9K bytes - Click Count (0)