Skip to content

Commit

Permalink
Update development Redis dependencies
Browse files Browse the repository at this point in the history
redis-py 5.0.0 changed the async close method from close to aclose,
and types-redis is no longer accurate for the library. Drop the
types-redis development dependency, add a versioned development
dependency, and use aclose instead of close to avoid a warning when
running the test suite.
  • Loading branch information
rra committed Nov 10, 2023
1 parent 1644f64 commit ab0c437
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit ab0c437

Please sign in to comment.