- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_call_invalid (0.06 seconds)
-
tests/test_additional_properties_bool.py
@app.post("/") async def post( foo: Union[Foo, None] = None, ): return foo client = TestClient(app) def test_call_invalid(): response = client.post("/", json={"foo": {"bar": "baz"}}) assert response.status_code == 422 def test_call_valid(): response = client.post("/", json={}) assert response.status_code == 200 assert response.json() == {}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 18:19:10 GMT 2025 - 3.7K bytes - Click Count (0)