fix: test for Gna! in emails
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/pr/woodpecker Pipeline failed Details

fix-rename-gna-in-emails
Hostea dashboard 2022-09-12 17:36:24 +05:30
parent ac0775e075
commit 0e0b8db940
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 3 additions and 2 deletions

View File

@ -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,
]
),