mytest_gen_uplat.py 418 B

1234567891011121314
  1. import os
  2. from services.uplatnica_generator import generate_uplatnica
  3. # Set up test data
  4. order_id = 1234567890
  5. payer_name = "John Doe"
  6. payer_address = "123 Main St, Anytown USA"
  7. amount = 101.00
  8. # Generate the invoice PDF
  9. pdf_path = generate_uplatnica(order_id, payer_name, payer_address, amount)
  10. pdf_path2 = genera
  11. # Test that the PDF file is created and saved to the correct location
  12. assert os.path.exists(pdf_path)