tests: fix reuse of cached event_type

This commit is contained in:
Benjamin Dauvergne 2020-11-27 17:40:02 +01:00
parent a5a92b627d
commit af85af7bc4
1 changed files with 5 additions and 0 deletions

View File

@ -154,3 +154,8 @@ def redis_client(monkeypatch):
monkeypatch.setattr(AppConfig, 'redis_client', redis_client)
yield redis_client
@pytest.fixture(autouse=True)
def clean_caches():
from authentic2.apps.journal.models import event_type_cache
event_type_cache.cache.clear()