diff --git a/pyproject.toml b/pyproject.toml index 0bfd01a544..0df34a1075 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,7 +111,7 @@ dev = [ "aiohttp==3.13.*", "coverage", "coveralls", - "fakeredis==2.34.*", + "fakeredis==2.35.*", "flake8==7.3.*", "freezegun", "isort==8.0.*", diff --git a/src/tests/conftest.py b/src/tests/conftest.py index 280b6aa55e..aadca81098 100644 --- a/src/tests/conftest.py +++ b/src/tests/conftest.py @@ -27,7 +27,7 @@ from django.core.cache import cache from django.test import override_settings from django.utils import translation from django_scopes import scopes_disabled -from fakeredis import FakeConnection +from fakeredis import FakeRedisConnection from xdist.dsession import DSession from pretix.testutils.mock import get_redis_connection @@ -97,21 +97,21 @@ def fakeredis_client(monkeypatch): 'BACKEND': 'django.core.cache.backends.redis.RedisCache', 'LOCATION': f'redis://127.0.0.1:{redis_port}', 'OPTIONS': { - 'connection_class': FakeConnection + 'connection_class': FakeRedisConnection } }, 'redis_session': { 'BACKEND': 'django.core.cache.backends.redis.RedisCache', 'LOCATION': f'redis://127.0.0.1:{redis_port}', 'OPTIONS': { - 'connection_class': FakeConnection + 'connection_class': FakeRedisConnection } }, 'default': { 'BACKEND': 'django.core.cache.backends.redis.RedisCache', 'LOCATION': f'redis://127.0.0.1:{redis_port}', 'OPTIONS': { - 'connection_class': FakeConnection + 'connection_class': FakeRedisConnection } }, }