mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -146,7 +146,7 @@ class LargeDeleteTests(TestCase):
|
||||
def test_large_deletes(self):
|
||||
"Regression for #13309 -- if the number of objects > chunk size, deletion still occurs"
|
||||
for x in range(300):
|
||||
Book.objects.create(pagecount=x+100)
|
||||
Book.objects.create(pagecount=x + 100)
|
||||
# attach a signal to make sure we will not fast-delete
|
||||
|
||||
def noop(*args, **kwargs):
|
||||
@@ -268,6 +268,7 @@ class ProxyDeleteTest(TestCase):
|
||||
with self.assertRaises(TypeError):
|
||||
Image.objects.values_list().delete()
|
||||
|
||||
|
||||
class Ticket19102Tests(TestCase):
|
||||
"""
|
||||
Test different queries which alter the SELECT clause of the query. We
|
||||
|
||||
Reference in New Issue
Block a user