mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-05 03:14:43 +00:00
Fix simple error
This commit is contained in:
parent
27eaaa57cc
commit
beff1e4050
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ class WriteTestCase(TestUtilsMixin, TransactionTestCase):
|
|||
Test.objects.bulk_create(unsaved_tests)
|
||||
self.assertEqual(Test.objects.count(), 20)
|
||||
|
||||
with self.assertNumQueries(3 if DJANGO_VERSION >= (4, 2) else else 1):
|
||||
with self.assertNumQueries(3 if DJANGO_VERSION >= (4, 2) else 1):
|
||||
data2 = list(Test.objects.all())
|
||||
self.assertEqual(len(data2), 20)
|
||||
self.assertListEqual([t.name for t in data2],
|
||||
|
|
|
|||
Loading…
Reference in a new issue