File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def healthy(self) -> bool | str:
4949 # Dirty, but if this breaks in the future we can instead
5050 # create our own redis-py client with its own connection
5151 # pool.
52- redis = cache .cache ._read_clients
52+ redis = cache .cache ._read_client
5353
5454 try :
5555 redis .ping ()
Original file line number Diff line number Diff line change 1- Flask-Caching==1.10 .1
1+ Flask-Caching==2.0 .1
22Flask-Migrate==3.1.0
33Flask==2.1.1
44black==22.3.0
Original file line number Diff line number Diff line change @@ -62,6 +62,10 @@ botocore==1.25.0 \
6262 # boto3
6363 # moto
6464 # s3transfer
65+ cachelib == 0.9.0 \
66+ --hash =sha256:38222cc7c1b79a23606de5c2607f4925779e37cdcea1c2ad21b8bae94b5425a5 \
67+ --hash =sha256:811ceeb1209d2fe51cd2b62810bd1eccf70feba5c52641532498be5c675493b3
68+ # via flask-caching
6569celery == 4.3.0 \
6670 --hash =sha256:4c4532aa683f170f40bd76f928b70bc06ff171a959e06e71bf35f2f9d6031ef9 \
6771 --hash =sha256:528e56767ae7e43a16cfef24ee1062491f5754368d38fcfffa861cdb9ef219be
@@ -200,9 +204,9 @@ flask==2.1.1 \
200204 # flask-sqlalchemy
201205 # pytest-flask
202206 # sentry-sdk
203- flask-caching == 1.10 .1 \
204- --hash =sha256:bcda8acbc7508e31e50f63e9b1ab83185b446f6b6318bd9dd1d45626fba2e903 \
205- --hash =sha256:cf19b722fcebc2ba03e4ae7c55b532ed53f0cbf683ce36fafe5e881789a01c00
207+ flask-caching == 2.0 .1 \
208+ --hash =sha256:10df200a03f032af60077befe41779dd94898b67c82040d34e87210b71ba2638 \
209+ --hash =sha256:703df847cbe904d8ddffd5f5fb320e236a31cb7bebac4a93d6b1701dd16dbf37
206210 # via -r requirements.in
207211flask-migrate == 3.1.0 \
208212 --hash =sha256:57d6060839e3a7f150eaab6fe4e726d9e3e7cffe2150fb223d73f92421c6d1d9 \
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def test_cache_unhealthy_configuration():
6464
6565def test_cache_unhealthy_service (redis_cache , monkeypatch ):
6666 mock_cache = Mock (redis_cache )
67- mock_cache .cache ._read_clients .ping .side_effect = redis .TimeoutError
67+ mock_cache .cache ._read_client .ping .side_effect = redis .TimeoutError
6868 monkeypatch .setattr ("landoapi.cache.cache" , mock_cache )
6969 monkeypatch .setattr ("landoapi.cache.RedisCache" , type (mock_cache .cache ))
7070
You can’t perform that action at this time.
0 commit comments