mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-21 02:41:53 +00:00
Detail.
This commit is contained in:
parent
92e5ed445c
commit
47b0044e6d
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class SettingsTestCase(TransactionTestCase):
|
|||
@skipIf(len(settings.CACHES) == 1,
|
||||
'We can’t change the cache used since there’s only one configured')
|
||||
def test_cache(self):
|
||||
with cachalot_settings(CACHALOT_CACHE='default'):
|
||||
with cachalot_settings(CACHALOT_CACHE=DEFAULT_CACHE_ALIAS):
|
||||
with self.assertNumQueries(1):
|
||||
list(Test.objects.all())
|
||||
with self.assertNumQueries(0):
|
||||
|
|
|
|||
Loading…
Reference in a new issue