mirror of https://github.com/tiangolo/fastapi.git
remove type hints
This commit is contained in:
parent
e242a8d29f
commit
13bf0ffca8
|
|
@ -13,7 +13,7 @@ client = TestClient(app)
|
||||||
("/nonexistent", 404, {"detail": "Not Found"}),
|
("/nonexistent", 404, {"detail": "Not Found"}),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_get_path(path: str, expected_status: int, expected_response: dict[str, str]):
|
def test_get_path(path, expected_status, expected_response):
|
||||||
response = client.get(path)
|
response = client.get(path)
|
||||||
assert response.status_code == expected_status
|
assert response.status_code == expected_status
|
||||||
assert response.json() == expected_response
|
assert response.json() == expected_response
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue