Exemplo n.º 1
0
    def setUp(self):
        kaggregate.flush_current_storage()
        TestModel.objects.all().delete()

        TestModel.objects.bulk_create([
            TestModel(num=1), TestModel(num=2),
            TestModel(num=3), TestModel(num=4),
            TestModel(num=5), TestModel(num=6),
            TestModel(num=7), TestModel(num=8),
            TestModel(num=9), TestModel(num=0),
        ])
Exemplo n.º 2
0
 def setUp(self):
     kaggregate.flush_current_storage()