mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-18 09:31:06 +00:00
Restores a test commented because it was unexpectedly breaking the suite.
This commit is contained in:
parent
d591fb60bb
commit
fa523b95bb
1 changed files with 11 additions and 11 deletions
|
|
@ -23,17 +23,17 @@ class SettingsTestCase(TransactionTestCase):
|
|||
with self.assertNumQueries(1):
|
||||
list(Test.objects.all())
|
||||
|
||||
# def test_django_override(self):
|
||||
# with self.settings(CACHALOT_ENABLED=False):
|
||||
# with self.assertNumQueries(1):
|
||||
# list(Test.objects.all())
|
||||
# with self.assertNumQueries(1):
|
||||
# list(Test.objects.all())
|
||||
# with self.settings(CACHALOT_ENABLED=True):
|
||||
# with self.assertNumQueries(1):
|
||||
# list(Test.objects.all())
|
||||
# with self.assertNumQueries(0):
|
||||
# list(Test.objects.all())
|
||||
def test_django_override(self):
|
||||
with self.settings(CACHALOT_ENABLED=False):
|
||||
with self.assertNumQueries(1):
|
||||
list(Test.objects.all())
|
||||
with self.assertNumQueries(1):
|
||||
list(Test.objects.all())
|
||||
with self.settings(CACHALOT_ENABLED=True):
|
||||
with self.assertNumQueries(1):
|
||||
list(Test.objects.all())
|
||||
with self.assertNumQueries(0):
|
||||
list(Test.objects.all())
|
||||
|
||||
def test_enabled(self):
|
||||
with cachalot_settings(CACHALOT_ENABLED=True):
|
||||
|
|
|
|||
Loading…
Reference in a new issue