MCPcopy
hub / github.com/fastapi/fastapi / test_put

Function test_put

tests/test_tutorial/test_bigger_applications/test_main.py:239–244  ·  view source on GitHub ↗
(client: TestClient)

Source from the content-addressed store, hash-verified

237
238
239def test_put(client: TestClient):
240 response = client.put(
241 "/items/plumbus?token=jessica", headers={"X-Token": "fake-super-secret-token"}
242 )
243 assert response.status_code == 200, response.text
244 assert response.json() == {"item_id": "plumbus", "name": "The great Plumbus"}
245
246
247def test_put_forbidden(client: TestClient):

Callers

nothing calls this directly

Calls 1

putMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…