From 512ca1966d14c65cf27cc396c0caeae70a600ac0 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 23 Jun 2025 15:40:15 +0200 Subject: [PATCH] Remove a cache isolation issue during tests --- src/tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/conftest.py b/src/tests/conftest.py index 3c3556749f..abedc3192c 100644 --- a/src/tests/conftest.py +++ b/src/tests/conftest.py @@ -23,6 +23,7 @@ import inspect import os import pytest +from django.core.cache import cache from django.test import override_settings from django.utils import translation from django_scopes import scopes_disabled @@ -115,6 +116,7 @@ def fakeredis_client(monkeypatch): }, } ): + cache.clear() redis = get_redis_connection("default", True) redis.flushall() monkeypatch.setattr('django_redis.get_redis_connection', get_redis_connection, raising=False)