Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_put_missing_required_in_item (0.1 sec)

  1. tests/test_tutorial/test_body_nested_models/test_tutorial004.py

                    "loc": ["body", "price"],
                    "input": {},
                    "msg": "Field required",
                    "type": "missing",
                },
            ]
        }
    
    
    def test_put_missing_required_in_item(client: TestClient):
        response = client.put(
            "/items/5",
            json={"description": "A very nice Item"},
        )
        assert response.status_code == 422, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_nested_models/test_tutorial005.py

                    "loc": ["body", "price"],
                    "input": {},
                    "msg": "Field required",
                    "type": "missing",
                },
            ]
        }
    
    
    def test_put_missing_required_in_item(client: TestClient):
        response = client.put(
            "/items/5",
            json={"description": "A very nice Item"},
        )
        assert response.status_code == 422, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_body_nested_models/test_tutorial007.py

                    "loc": ["body", "items"],
                    "input": {},
                    "msg": "Field required",
                    "type": "missing",
                },
            ]
        }
    
    
    def test_put_missing_required_in_items(client: TestClient):
        response = client.post(
            "/offers/",
            json={
                "name": "Special Offer",
                "price": 38.6,
                "items": [{}],
            },
        )
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top