📝 Update examples for tests to replace "inexistent" for "nonexistent" (#11220)

This commit is contained in:
bebop authored and GitHub committed 2024-03-13 20:07:10 +01:00
1 parent 72e07c4f44
commit 478288700a
22 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ def test_read_item_bad_token():
assert response.json() == {"detail": "Invalid X-Token header"}
def test_read_inexistent_item():
def test_read_nonexistent_item():
response = client.get("/items/baz", headers={"X-Token": "coneofsilence"})
assert response.status_code == 404
assert response.json() == {"detail": "Item not found"}