(client: TestClient)
| 33 | |
| 34 | |
| 35 | def 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 | |
| 55 | def test_patch_name(client: TestClient): |
nothing calls this directly
no test coverage detected
searching dependent graphs…