This commit is contained in:
Bertrand Bordage 2014-12-07 07:03:16 +01:00
parent 92e5ed445c
commit 47b0044e6d

View file

@ -63,7 +63,7 @@ class SettingsTestCase(TransactionTestCase):
@skipIf(len(settings.CACHES) == 1,
'We cant change the cache used since theres 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):