Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_query_params_str_validations_q_too_long (0.13 sec)

  1. 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": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. 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": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top