diff --git a/pyproject.toml b/pyproject.toml index 9b8c6078..5ef798dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,10 +50,10 @@ dev = [ "psycopg2", "pytest", "pytest-asyncio", + "redis>=5,<6", "respx", "scriv", "sqlalchemy[mypy]", - "types-redis", "uvicorn", # documentation "documenteer[guide]>=1.0.0a7", diff --git a/tests/conftest.py b/tests/conftest.py index e645f894..91fa38cb 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -38,7 +38,7 @@ async def redis_client() -> AsyncIterator[redis.Redis]: This fixture connects to the Redis server that runs via tox-docker. """ - client: redis.Redis = redis.Redis(host="localhost", port=6379, db=0) + client = redis.Redis(host="localhost", port=6379, db=0) yield client - await client.close() + await client.aclose()