fix tests
This commit is contained in:
parent
dacc1c5770
commit
a6e4a774e0
|
@ -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
|
||||
|
|
|
@ -18,7 +18,7 @@ if TYPE_CHECKING:
|
|||
|
||||
TEST_CACHE = {
|
||||
"default": {
|
||||
"BACKEND": "django.core.cache.backends.dummy.DummyCache",
|
||||
"BACKEND": "tacticalrmm.cache.TacticalDummyCache",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue