mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-18 17:41:06 +00:00
Fixes tests on Django 1.7.
This commit is contained in:
parent
a8b77c6e32
commit
6b385919f1
1 changed files with 2 additions and 2 deletions
|
|
@ -145,9 +145,9 @@ class SettingsTestCase(TransactionTestCase):
|
|||
# However, if we only fetch data from the 'cachalot_testchild'
|
||||
# table, it’s cachable.
|
||||
with self.assertNumQueries(1):
|
||||
list(TestChild.objects.only('public'))
|
||||
list(TestChild.objects.values('public'))
|
||||
with self.assertNumQueries(0):
|
||||
list(TestChild.objects.only('public'))
|
||||
list(TestChild.objects.values('public'))
|
||||
|
||||
def test_uncachable_tables(self):
|
||||
with self.settings(CACHALOT_UNCACHABLE_TABLES=('cachalot_test',)):
|
||||
|
|
|
|||
Loading…
Reference in a new issue