mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-10 21:53:12 +00:00
Updates a query amount in transactions.
This commit is contained in:
parent
9938b54123
commit
fd7afc6fed
1 changed files with 2 additions and 2 deletions
|
|
@ -138,7 +138,7 @@ class AtomicTestCase(TransactionTestCase):
|
|||
def test_unsuccessful_nested_read_atomic(self):
|
||||
is_sqlite = connection.vendor == 'sqlite'
|
||||
|
||||
with self.assertNumQueries(5 if is_sqlite else 4):
|
||||
with self.assertNumQueries(6 if is_sqlite else 5):
|
||||
with transaction.atomic():
|
||||
try:
|
||||
with transaction.atomic():
|
||||
|
|
@ -172,7 +172,7 @@ class AtomicTestCase(TransactionTestCase):
|
|||
def test_unsuccessful_nested_write_atomic(self):
|
||||
is_sqlite = connection.vendor == 'sqlite'
|
||||
|
||||
with self.assertNumQueries(13 if is_sqlite else 12):
|
||||
with self.assertNumQueries(16 if is_sqlite else 15):
|
||||
with transaction.atomic():
|
||||
t1 = Test.objects.create(name='test1')
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue