- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_post_invalid_item (0.1 sec)
-
tests/test_tutorial/test_dataclasses/test_tutorial001.py
assert response.status_code == 200 assert response.json() == { "name": "Foo", "price": 3, "description": None, "tax": None, } def test_post_invalid_item(): response = client.post("/items/", json={"name": "Foo", "price": "invalid price"}) assert response.status_code == 422 assert response.json() == IsDict( { "detail": [
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 5.2K bytes - Viewed (0)