- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_put_no_body_with_body (0.08 seconds)
-
tests/test_put_no_body.py
client = TestClient(app) def test_put_no_body(): response = client.put("/items/foo") assert response.status_code == 200, response.text assert response.json() == {"item_id": "foo"} def test_put_no_body_with_body(): response = client.put("/items/foo", json={"name": "Foo"}) assert response.status_code == 200, response.text assert response.json() == {"item_id": "foo"} def test_openapi_schema():
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 3.3K bytes - Click Count (0)