From 0e0b8db94068c4607b6eb0d413f7a4bd53950018 Mon Sep 17 00:00:00 2001 From: Hostea dashboard Date: Mon, 12 Sep 2022 17:36:24 +0530 Subject: [PATCH] fix: test for Gna! in emails --- billing/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/billing/tests.py b/billing/tests.py index b165506..14d3cda 100644 --- a/billing/tests.py +++ b/billing/tests.py @@ -98,11 +98,12 @@ class BillingTest(TestCase): # and then the Gitea instance credentials notification followed by the # invoice generation email. receipt_mail = mail.outbox.pop() + print(receipt_mail.body) self.assertEqual( all( [ receipt_mail.to[0] == self.email, - "This is a receipt for your latest Hostea payment" + "This is a receipt for your latest Gna! payment" in receipt_mail.body, ] ), @@ -114,7 +115,7 @@ class BillingTest(TestCase): all( [ instance_notificaiton.to[0] == self.email, - "Congratulations on your new Hostea instance!" + "Congratulations on your new Gna! instance!" in instance_notificaiton.body, ] ),