diff --git a/passbook/recovery/tests.py b/passbook/recovery/tests.py index 9057295e1..d6650fa2e 100644 --- a/passbook/recovery/tests.py +++ b/passbook/recovery/tests.py @@ -25,7 +25,8 @@ class TestRecovery(TestCase): def test_recovery_view(self): """Test recovery view""" - call_command('create_recovery_key', '1', self.user.username) + out = StringIO() + call_command('create_recovery_key', '1', self.user.username, stdout=out) nonce = Nonce.objects.first() self.client.get(reverse('passbook_recovery:use-nonce', kwargs={'uuid': str(nonce.uuid)})) self.assertEqual(int(self.client.session['_auth_user_id']), nonce.user.pk) diff --git a/passbook/root/settings.py b/passbook/root/settings.py index f933030a1..6ffc07135 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -137,7 +137,7 @@ REST_FRAMEWORK = { CACHES = { "default": { - "BACKEND": "django_prometheus.cache.backends.redis.RedisCache", + "BACKEND": "django_redis.cache.RedisCache", "LOCATION": (f"redis://:{CONFIG.y('redis.password')}@{CONFIG.y('redis.host')}:6379" f"/{CONFIG.y('redis.cache_db')}"), "OPTIONS": {