- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_additional_properties_post (0.12 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/test_additional_properties.py
app = FastAPI() class Items(BaseModel): items: dict[str, int] @app.post("/foo") def foo(items: Items): return items.items client = TestClient(app) def test_additional_properties_post(): response = client.post("/foo", json={"items": {"foo": 1, "bar": 2}}) assert response.status_code == 200, response.text assert response.json() == {"foo": 1, "bar": 2} def test_openapi_schema():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 4.1K bytes - Click Count (0)