Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_read_items_item_id_greater_than_one_thousand (0.18 sec)

  1. tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py

                    "msg": "Input should be greater than or equal to 0",
                    "type": "greater_than_equal",
                    "ctx": {"ge": 0},
                }
            ]
        }
    
    
    def test_read_items_item_id_greater_than_one_thousand(client: TestClient):
        response = client.get("/items/1001?q=somequery&size=5")
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
    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_tutorial/test_path_params_numeric_validations/test_tutorial005.py

                    "msg": "Input should be greater than 0",
                    "type": "greater_than",
                    "ctx": {"gt": 0},
                }
            ]
        }
    
    
    def test_read_items_item_id_greater_than_one_thousand(client: TestClient):
        response = client.get("/items/1001?q=somequery")
        assert response.status_code == 422, response.text
        assert response.json() == {
            "detail": [
                {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top