Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for less_than_equal (0.09 sec)

  1. tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py

            "detail": [
                {
                    "loc": ["path", "item_id"],
                    "input": "1001",
                    "msg": "Input should be less than or equal to 1000",
                    "type": "less_than_equal",
                    "ctx": {"le": 1000},
                }
            ]
        }
    
    
    def test_read_items_size_too_small(client: TestClient):
        response = client.get("/items/1?q=somequery&size=0.0")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. tests/test_path.py

    def test_path_param_le_42():
        response = client.get("/path/param-le/42")
        assert response.status_code == 422
        assert response.json() == {
            "detail": [
                {
                    "type": "less_than_equal",
                    "loc": ["path", "item_id"],
                    "msg": "Input should be less than or equal to 3",
                    "input": "42",
                    "ctx": {"le": 3.0},
                }
            ]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 20.5K bytes
    - Viewed (1)
  3. tests/test_tutorial/test_path_params_numeric_validations/test_tutorial005.py

            "detail": [
                {
                    "loc": ["path", "item_id"],
                    "input": "1001",
                    "msg": "Input should be less than or equal to 1000",
                    "type": "less_than_equal",
                    "ctx": {"le": 1000},
                }
            ]
        }
    
    
    def test_read_items_missing_q(client: TestClient):
        response = client.get("/items/42")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_param_models/test_tutorial002.py

            },
        )
        assert response.status_code == 422
        assert response.json() == snapshot(
            {
                "detail": [
                    {
                        "type": "less_than_equal",
                        "loc": ["query", "limit"],
                        "msg": "Input should be less than or equal to 100",
                        "input": "150",
                        "ctx": {"le": 100},
                    },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_query_param_models/test_tutorial001.py

            },
        )
        assert response.status_code == 422
        assert response.json() == snapshot(
            {
                "detail": [
                    {
                        "type": "less_than_equal",
                        "loc": ["query", "limit"],
                        "msg": "Input should be less than or equal to 100",
                        "input": "150",
                        "ctx": {"le": 100},
                    },
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top