def test_create_product_sales(db): how_many = 5 for _ in random_data.create_product_sales(how_many): pass assert Sale.objects.all().count() == 5
def test_create_product_sales(db): how_many = 5 for _ in random_data.create_product_sales(how_many): pass assert Sale.objects.all().count() == 5