Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
pcrespov committed Feb 7, 2024
1 parent d0cde75 commit e62e4ed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion services/payments/tests/unit/test_services_notifier_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
_add_attachments,
_create_email_session,
_create_user_email,
_PaymentData,
_ProductData,
_UserData,
)
Expand Down Expand Up @@ -88,7 +89,8 @@ async def test_send_email_workflow(
vendor_display_inline="IT'IS Foundation. Zeughausstrasse 43, 8004 Zurich, Switzerland ",
support_email="[email protected]",
)
payment = PaymentTransaction(

transaction = PaymentTransaction(
payment_id="pt_123234",
price_dollars=faker.pydecimal(positive=True, right_digits=2, left_digits=4),
wallet_id=12,
Expand All @@ -101,6 +103,12 @@ async def test_send_email_workflow(
invoice_url=faker.image_url(),
)

payment = _PaymentData(
price_dollars=f"{transaction.price_dollars:.2f}",
osparc_credits=f"{transaction.osparc_credits:.2f}",
invoice_url=transaction.invoice_url,
)

msg = await _create_user_email(env, user, payment, product)

attachment = tmp_path / "test-attachment.txt"
Expand Down

0 comments on commit e62e4ed

Please sign in to comment.