MCPcopy Index your code
hub / github.com/fastapi/fastapi / test_patch

Function test_patch

tests/test_extra_routes.py:85–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def test_patch():
86 response = client.patch("/items/foo", json={"name": "Foo"})
87 assert response.status_code == 200, response.text
88 assert response.json() == {"item_id": "foo", "item": {"name": "Foo", "price": None}}
89
90
91def test_trace():

Callers

nothing calls this directly

Calls 1

patchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…