Skip to content

Commit

Permalink
Upgrade requirements (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainix committed Jan 11, 2024
1 parent 72ca2bc commit 549b10a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
32 changes: 16 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,56 @@ certifi==2023.11.17
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
coverage==7.3.2
coverage==7.4.0
cryptography==41.0.7
docutils==0.20.1
dparse==0.6.3
flake8==6.1.0
flake8==7.0.0
gitdb==4.0.11
GitPython==3.1.40
hiredis==2.2.3
GitPython==3.1.41
hiredis==2.3.2
idna==3.6
importlib-metadata==6.8.0
importlib-metadata==7.0.1
iniconfig==2.0.0
isort==5.13.2
jaraco.classes==3.3.0
keyring==24.3.0
markdown-it-py==3.0.0
mccabe==0.7.0
mdurl==0.1.2
mmh3==4.0.1
more-itertools==10.1.0
mypy==1.7.1
mmh3==4.1.0
more-itertools==10.2.0
mypy==1.8.0
mypy-extensions==1.0.0
nh3==0.2.14
nh3==0.2.15
packaging==21.3
pbr==6.0.0
pkginfo==1.9.6
pluggy==1.3.0
pycodestyle==2.11.1
pycparser==2.21
pyflakes==3.1.0
pyflakes==3.2.0
Pygments==2.17.2
pyparsing==3.1.1
pytest==7.4.3
pytest-asyncio==0.23.2
pytest==7.4.4
pytest-asyncio==0.23.3
pytest-cov==4.1.0
PyYAML==6.0.1
readme-renderer==42.0
redis==5.1.0a1
redis==5.1.0b2
requests==2.31.0
requests-toolbelt==1.0.0
rfc3986==2.0.0
rich==13.7.0
ruamel.yaml==0.18.5
ruamel.yaml.clib==0.2.8
safety==2.3.5
setuptools==69.0.2
setuptools==69.0.3
smmap==5.0.1
stevedore==5.1.0
twine==4.0.2
types-pyOpenSSL==23.3.0.0
types-redis==4.6.0.11
types-pyOpenSSL==23.3.0.20240106
types-redis==4.6.0.20240106
typing_extensions==4.9.0
urllib3==2.1.0
uvloop==0.19.0
Expand Down
4 changes: 3 additions & 1 deletion tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def test_randomkeyerror_repr(redis: Redis) -> None:
raj._random_key()
except RandomKeyError as wtf:
redis_db = redis.get_connection_kwargs()['db'] # type: ignore
assert repr(wtf) == f'RandomKeyError(redis=Redis<ConnectionPool<Connection<host=localhost,port=6379,db={redis_db}>>>, key=None)'
assert repr(wtf) == (
f'RandomKeyError(redis=<redis.client.Redis(<redis.connection.ConnectionPool(<redis.connection.Connection(host=localhost,port=6379,db={redis_db})>)>)>, key=None)'
)
else: # pragma: no cover
pytest.fail(msg='RandomKeyError not raised')

Expand Down
3 changes: 1 addition & 2 deletions tests/test_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def test_keyexistserror_repr(redis: Redis) -> None:
except KeyExistsError as wtf:
redis_db = redis.get_connection_kwargs()['db'] # type: ignore
assert repr(wtf) == (
f"KeyExistsError(redis=Redis<ConnectionPool<Connection<host=localhost,port=6379,db={redis_db}>>>, "
"key='pottery:tel')"
f"KeyExistsError(redis=<redis.client.Redis(<redis.connection.ConnectionPool(<redis.connection.Connection(host=localhost,port=6379,db={redis_db})>)>)>, key='pottery:tel')"
)
else: # pragma: no cover
pytest.fail(msg='KeyExistsError not raised')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_redlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_releaseunlockedlock_repr(redlock: Redlock) -> None:
redis_db = redis.get_connection_kwargs()['db'] # type: ignore
assert repr(wtf) == (
"ReleaseUnlockedLock(key='redlock:printer', "
f"masters=frozenset({{Redis<ConnectionPool<Connection<host=localhost,port=6379,db={redis_db}>>>}}), "
f"masters=frozenset({{<redis.client.Redis(<redis.connection.ConnectionPool(<redis.connection.Connection(host=localhost,port=6379,db={redis_db})>)>)>}}), "
"redis_errors=[])"
)

Expand Down

0 comments on commit 549b10a

Please sign in to comment.