| 1234567891011121314 |
- import os
- from services.uplatnica_generator import generate_uplatnica
- # Set up test data
- order_id = 1234567890
- payer_name = "John Doe"
- payer_address = "123 Main St, Anytown USA"
- amount = 101.00
- # Generate the invoice PDF
- pdf_path = generate_uplatnica(order_id, payer_name, payer_address, amount)
- pdf_path2 = genera
- # Test that the PDF file is created and saved to the correct location
- assert os.path.exists(pdf_path)
|