Esempio n. 1
0
 def setUp(self):
     super(ApproximateCountTests, self).setUp()
     Author.objects.bulk_create([Author() for i in range(10)])
Esempio n. 2
0
 def setUp(self):
     super(FoundRowsTests, self).setUp()
     Author.objects.bulk_create([Author() for i in range(10)])
Esempio n. 3
0
 def setUp(self):
     super(SmartIteratorTests, self).setUp()
     Author.objects.bulk_create([Author(id=i + 1) for i in range(10)])