ci: fix poetry

This commit is contained in:
long2ice
2023-02-15 10:45:19 +08:00
parent d04be274e9
commit 27acce3160
5 changed files with 14 additions and 7 deletions

View File

@@ -37,7 +37,6 @@ def test_datetime() -> None:
def test_date() -> None:
"""Test path function without request or response arguments."""
with TestClient(app) as client:
response = client.get("/date")
assert pendulum.parse(response.json()) == pendulum.today()
@@ -68,8 +67,9 @@ def test_cache_response_obj() -> None:
assert get_cache_response.headers.get("cache-control")
assert get_cache_response.headers.get("etag")
def test_kwargs() -> None:
with TestClient(app) as client:
name = "Jon"
response = client.get("/kwargs", params = {"name": name})
response = client.get("/kwargs", params={"name": name})
assert response.json() == {"name": name}