- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_post_body_example (0.18 sec)
-
tests/test_tutorial/test_schema_extra_example/test_tutorial004.py
from fastapi.testclient import TestClient from docs_src.schema_extra_example.tutorial004 import app client = TestClient(app) # Test required and embedded body parameters with no bodies sent def test_post_body_example(): response = client.put( "/items/5", json={ "name": "Foo", "description": "A very nice Item", "price": 35.4, "tax": 3.2, },
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 6.9K bytes - Viewed (0)