fix tests

This commit is contained in:
sadnub 2022-04-14 18:03:39 -04:00
parent dacc1c5770
commit a6e4a774e0
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
from django.core.cache.backends.redis import RedisCache
from django.core.cache.backends.dummy import DummyCache
from typing import Optional
@ -8,3 +9,8 @@ class TacticalRedisCache(RedisCache):
if keys:
self._cache.delete_many(keys)
class TacticalDummyCache(DummyCache):
def delete_many_pattern(self, pattern: str, version: Optional[int] = None) -> None:
pass

View File

@ -18,7 +18,7 @@ if TYPE_CHECKING:
TEST_CACHE = {
"default": {
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
"BACKEND": "tacticalrmm.cache.TacticalDummyCache",
}
}