def setUp(self): self.address = generate_address() self.client = generate_customer() self.client.add_address(self.address) self.project = generate_project() self.customer_id = get_smallinvoice().clients.add(self.client) self.project.client_id = self.customer_id self.project_id = get_smallinvoice().projects.add(self.project)
def setUp(self): self.address = generate_address() self.client = generate_customer() self.client.add_address(self.address) self.letter = generate_letter() self.customer_id = get_smallinvoice().clients.add(self.client) self.letter.client_id = self.customer_id test = get_smallinvoice().clients.details(self.customer_id) self.letter.client_address_id = test['main_address_id'] self.letter_id = get_smallinvoice().letters.add(self.letter)
def setUp(self): self.address = generate_address() self.client = generate_customer() self.client.add_address(self.address) self.position = generate_position() self.receipt = generate_receipt() self.receipt.add_position(self.position) self.customer_id = get_smallinvoice().clients.add(self.client) self.receipt.client_id = self.customer_id test = get_smallinvoice().clients.details(self.customer_id) self.receipt.client_address_id = test['main_address_id'] self.receipt_id = get_smallinvoice().receipts.add(self.receipt)
def setUp(self): self.address = generate_address() self.client = generate_customer() self.client.add_address(self.address) self.position = generate_position() self.invoice = generate_invoice() self.invoice.period = INVOICE_PERIOD self.invoice.add_position(self.position) self.customer_id = get_smallinvoice().clients.add(self.client) self.invoice.client_id = self.customer_id test = get_smallinvoice().clients.details(self.customer_id) self.invoice.client_address_id = test['main_address_id'] self.invoice_id = get_smallinvoice().invoices.add(self.invoice)
def setUp(self): self.address = generate_address() self.client = generate_customer() self.client.add_address(self.address) self.client_id = get_smallinvoice().clients.add(self.client)