mirror of
https://github.com/fastapi/fastapi.git
synced 2026-09-08 11:35:12 -04:00
📝 Update examples for tests to replace "inexistent" for "nonexistent" (#11220)
This commit is contained in:
1 parent
72e07c4f44
commit
478288700a
22 files changed
+22
-22
No files matched your search
@@ -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"}
|
||||
|
||||
Reference in new issue
Block a user