mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #32233 -- Added tests for nonexistent cache and databases aliases.
This commit is contained in:
5
tests/cache/tests.py
vendored
5
tests/cache/tests.py
vendored
@@ -2499,3 +2499,8 @@ class CacheHandlerTest(SimpleTestCase):
|
||||
t.join()
|
||||
|
||||
self.assertIsNot(c[0], c[1])
|
||||
|
||||
def test_nonexistent_alias(self):
|
||||
msg = "Could not find config for 'nonexistent' in settings.CACHES"
|
||||
with self.assertRaisesMessage(InvalidCacheBackendError, msg):
|
||||
caches['nonexistent']
|
||||
|
||||
Reference in New Issue
Block a user