- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_post_invalid_body (0.2 seconds)
-
tests/test_tutorial/test_body_nested_models/test_tutorial009.py
data = {"2": 2.2, "3": 3.3} response = client.post("/index-weights/", json=data) assert response.status_code == 200, response.text assert response.json() == data def test_post_invalid_body(client: TestClient): data = {"foo": 2.2, "3": 3.3} response = client.post("/index-weights/", json=data) assert response.status_code == 422, response.text assert response.json() == { "detail": [Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 4.5K bytes - Click Count (0)