- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for response (0.16 sec)
-
tests/test_tutorial/test_dataclasses/test_tutorial003.py
from ...utils import needs_pydanticv1, needs_pydanticv2 client = TestClient(app) def test_post_authors_item(): response = client.post( "/authors/foo/items/", json=[{"name": "Bar"}, {"name": "Baz", "description": "Drop the Baz"}], ) assert response.status_code == 200 assert response.json() == { "name": "foo", "items": [ {"name": "Bar", "description": None},
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Sep 28 04:14:40 GMT 2023 - 12.1K bytes - Viewed (0)