- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_post_authors_item (0.1 sec)
-
tests/test_tutorial/test_dataclasses/test_tutorial003.py
from fastapi.testclient import TestClient from docs_src.dataclasses.tutorial003 import app 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() == {
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Jul 31 14:09:15 UTC 2024 - 12.1K bytes - Viewed (0)