def test_pdf_generation_custom_text(env): event, order = env event.settings.set('invoice_introductory_text', 'introductory invoice text') # set a really long additional text, to make the invoice span two pages event.settings.set('invoice_additional_text', 'additional invoice text\n' * 100) event.settings.set('show_date_to', False) inv = generate_invoice(order) assert invoice_pdf_task(inv.pk)
def test_pdf_generation_custom_text(env): event, order = env event.settings.set('invoice_introductory_text', 'introductory invoice text') # set a really long additional text, to make the invoice span two pages event.settings.set('invoice_additional_text', 'additional invoice text\n' * 100) event.settings.set('show_date_to', False) inv = generate_invoice(order) assert invoice_pdf_task(inv.pk)
def test_pdf_generation(env): event, order = env inv = generate_invoice(order) cancellation = generate_cancellation(inv) assert invoice_pdf_task(inv.pk) assert invoice_pdf_task(cancellation.pk)
def test_pdf_generation(env): event, order = env inv = generate_invoice(order) cancellation = generate_cancellation(inv) assert invoice_pdf_task(inv.pk) assert invoice_pdf_task(cancellation.pk)