diff options
Diffstat (limited to 'tests/cache')
| -rw-r--r-- | tests/cache/failing_cache.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cache/failing_cache.py b/tests/cache/failing_cache.py new file mode 100644 index 0000000000..e2f0043bb7 --- /dev/null +++ b/tests/cache/failing_cache.py @@ -0,0 +1,7 @@ +from django.core.cache.backends.locmem import LocMemCache + + +class CacheClass(LocMemCache): + + def set(self, *args, **kwargs): + raise Exception("Faked exception saving to cache") |
