Skip to content

Commit

Permalink
server: Fix tests & add for product sales
Browse files Browse the repository at this point in the history
  • Loading branch information
birkjernstrom committed Jul 17, 2024
1 parent 81cc2ca commit a3d4bd2
Show file tree
Hide file tree
Showing 3 changed files with 572 additions and 1 deletion.
14 changes: 14 additions & 0 deletions server/tests/notifications/test_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
MaintainerCreateAccountNotificationPayload,
MaintainerDonationReceivedNotificationPayload,
MaintainerNewPaidSubscriptionNotificationPayload,
MaintainerNewProductSaleNotificationPayload,
MaintainerPledgeConfirmationPendingNotificationPayload,
MaintainerPledgeCreatedNotificationPayload,
MaintainerPledgedIssueConfirmationPendingNotificationPayload,
Expand Down Expand Up @@ -388,6 +389,19 @@ async def test_MaintainerNewPaidSubscriptionNotification() -> None:
await check_diff(n.render())


@pytest.mark.asyncio
@pytest.mark.skip_db_asserts
async def test_MaintainerNewProductSaleNotification() -> None:
n = MaintainerNewProductSaleNotificationPayload(
customer_name="[email protected]",
product_name="My Awesome Digital Product",
product_price_amount=500,
organization_name="myorg",
)

await check_diff(n.render())


@pytest.mark.asyncio
@pytest.mark.skip_db_asserts
async def test_MaintainerCreateAccountNotificationPayload() -> None:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
John Doe is now subscribing to My Paid Tier ($5)
Congrats! You have a new subscriber ($5/month)!
<hr>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Expand Down
Loading

0 comments on commit a3d4bd2

Please sign in to comment.