mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-08 12:44:44 +00:00
Fixes tests for SQLite.
This commit is contained in:
parent
1356de58af
commit
ae9dc1118b
1 changed files with 2 additions and 2 deletions
|
|
@ -653,7 +653,7 @@ class WriteTestCase(TransactionTestCase):
|
|||
['test1', 'test2', 'test3'])
|
||||
|
||||
def test_raw_update(self):
|
||||
with self.assertNumQueries(1):
|
||||
with self.assertNumQueries(2 if self.is_sqlite else 1):
|
||||
Test.objects.create(name='test')
|
||||
with self.assertNumQueries(1):
|
||||
self.assertListEqual(
|
||||
|
|
@ -671,7 +671,7 @@ class WriteTestCase(TransactionTestCase):
|
|||
['new name'])
|
||||
|
||||
def test_raw_delete(self):
|
||||
with self.assertNumQueries(1):
|
||||
with self.assertNumQueries(2 if self.is_sqlite else 1):
|
||||
Test.objects.create(name='test')
|
||||
with self.assertNumQueries(1):
|
||||
self.assertListEqual(
|
||||
|
|
|
|||
Loading…
Reference in a new issue