-
-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: Fix tests & add for product sales
- Loading branch information
1 parent
81cc2ca
commit a3d4bd2
Showing
3 changed files
with
572 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
MaintainerCreateAccountNotificationPayload, | ||
MaintainerDonationReceivedNotificationPayload, | ||
MaintainerNewPaidSubscriptionNotificationPayload, | ||
MaintainerNewProductSaleNotificationPayload, | ||
MaintainerPledgeConfirmationPendingNotificationPayload, | ||
MaintainerPledgeCreatedNotificationPayload, | ||
MaintainerPledgedIssueConfirmationPendingNotificationPayload, | ||
|
@@ -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: | ||
|
2 changes: 1 addition & 1 deletion
2
server/tests/notifications/testdata/test_MaintainerNewPaidSubscriptionNotification.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.