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

Function test_patch_all

tests/test_tutorial/test_body_updates/test_tutorial002.py:35–52  ·  view source on GitHub ↗
(client: TestClient)

Source from the content-addressed store, hash-verified

33
34
35def test_patch_all(client: TestClient):
36 response = client.patch(
37 "/items/foo",
38 json={
39 "name": "Fooz",
40 "description": "Item description",
41 "price": 3,
42 "tax": 10.5,
43 "tags": ["tag1", "tag2"],
44 },
45 )
46 assert response.json() == {
47 "name": "Fooz",
48 "description": "Item description",
49 "price": 3,
50 "tax": 10.5,
51 "tags": ["tag1", "tag2"],
52 }
53
54
55def test_patch_name(client: TestClient):

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…