mirror of
https://github.com/fastapi/fastapi.git
synced 2026-04-14 03:50:33 -04:00
📝 Update examples for tests to replace "inexistent" for "nonexistent" (#11220)
This commit is contained in:
@@ -54,7 +54,7 @@ def test_get_user(client):
|
||||
|
||||
# TODO: pv2 add version with Pydantic v2
|
||||
@needs_pydanticv1
|
||||
def test_inexistent_user(client):
|
||||
def test_nonexistent_user(client):
|
||||
response = client.get("/users/999")
|
||||
assert response.status_code == 404, response.text
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ def test_get_user(client):
|
||||
|
||||
# TODO: pv2 add version with Pydantic v2
|
||||
@needs_pydanticv1
|
||||
def test_inexistent_user(client):
|
||||
def test_nonexistent_user(client):
|
||||
response = client.get("/users/999")
|
||||
assert response.status_code == 404, response.text
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ def test_get_user(client):
|
||||
@needs_py310
|
||||
# TODO: pv2 add version with Pydantic v2
|
||||
@needs_pydanticv1
|
||||
def test_inexistent_user(client):
|
||||
def test_nonexistent_user(client):
|
||||
response = client.get("/users/999")
|
||||
assert response.status_code == 404, response.text
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ def test_get_user(client):
|
||||
@needs_py39
|
||||
# TODO: pv2 add version with Pydantic v2
|
||||
@needs_pydanticv1
|
||||
def test_inexistent_user(client):
|
||||
def test_nonexistent_user(client):
|
||||
response = client.get("/users/999")
|
||||
assert response.status_code == 404, response.text
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ def test_get_user(client):
|
||||
@needs_py310
|
||||
# TODO: pv2 add version with Pydantic v2
|
||||
@needs_pydanticv1
|
||||
def test_inexistent_user(client):
|
||||
def test_nonexistent_user(client):
|
||||
response = client.get("/users/999")
|
||||
assert response.status_code == 404, response.text
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ def test_get_user(client):
|
||||
@needs_py39
|
||||
# TODO: pv2 add version with Pydantic v2
|
||||
@needs_pydanticv1
|
||||
def test_inexistent_user(client):
|
||||
def test_nonexistent_user(client):
|
||||
response = client.get("/users/999")
|
||||
assert response.status_code == 404, response.text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user