def setUp(self): self.tva = 0.1 self.client = ClientFactory() self.product_lines = [ ProductLineFactory() for i in range(random.randint(1, 10)) ] self.facture = Facture.Facture(self.tva, self.client, self.product_lines)
def run(cls): fac = Facture("PC Store - 22 novembre", cls.articles) print(fac)