- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_invalid (0.17 sec)
-
tests/test_tutorial/test_body_fields/test_tutorial001.py
"item_id": 6, "item": { "name": "Bar", "price": 0.2, "description": "Some bar", "tax": 5.4, }, } def test_invalid_price(client: TestClient): response = client.put("/items/5", json={"item": {"name": "Foo", "price": -3.0}}) assert response.status_code == 422 assert response.json() == IsDict( { "detail": [
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 7.2K bytes - Viewed (0)