fix: test for Gna! in emails
parent
ac0775e075
commit
0e0b8db940
|
@ -98,11 +98,12 @@ class BillingTest(TestCase):
|
||||||
# and then the Gitea instance credentials notification followed by the
|
# and then the Gitea instance credentials notification followed by the
|
||||||
# invoice generation email.
|
# invoice generation email.
|
||||||
receipt_mail = mail.outbox.pop()
|
receipt_mail = mail.outbox.pop()
|
||||||
|
print(receipt_mail.body)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
all(
|
all(
|
||||||
[
|
[
|
||||||
receipt_mail.to[0] == self.email,
|
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,
|
in receipt_mail.body,
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
@ -114,7 +115,7 @@ class BillingTest(TestCase):
|
||||||
all(
|
all(
|
||||||
[
|
[
|
||||||
instance_notificaiton.to[0] == self.email,
|
instance_notificaiton.to[0] == self.email,
|
||||||
"Congratulations on your new Hostea instance!"
|
"Congratulations on your new Gna! instance!"
|
||||||
in instance_notificaiton.body,
|
in instance_notificaiton.body,
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue