@@ -553,7 +553,7 @@ def test_postmark_webhook_cannot_post_to_another_users_blog(self):
553553 self .assertEqual (len (mail .outbox ), 0 )
554554
555555 def test_postmark_webhook_non_premium_user_cannot_post (self ):
556- """Non-premium users should receive an upgrade email instead of creating a post."""
556+ """Non-premium users should receive a subscribe email instead of creating a post."""
557557 non_premium_user = models .User .objects .create (
558558 username = "freemium" ,
email = "[email protected] " ,
is_premium = False 559559 )
@@ -575,14 +575,14 @@ def test_postmark_webhook_non_premium_user_cannot_post(self):
575575 self .assertEqual (response .status_code , 200 )
576576 # no post created
577577 self .assertFalse (models .Post .objects .exists ())
578- # upgrade email sent
578+ # subscribe to premium email sent
579579 self .assertEqual (len (mail .outbox ), 1 )
580580 self .
assertEqual (
mail .
outbox [
0 ].
to , [
"[email protected] " ])
581581 self .assertIn ("premium feature" , mail .outbox [0 ].body .lower ())
582582 self .assertIn ("https://mataroa.blog/billing/overview/" , mail .outbox [0 ].body )
583583
584584 def test_postmark_webhook_non_premium_user_cannot_create_draft (self ):
585- """Non-premium users should receive an upgrade email when trying to create a draft."""
585+ """Non-premium users should receive a subscribe email when trying to create a draft."""
586586 non_premium_user = models .User .objects .create (
587587 username = "freemium" ,
email = "[email protected] " ,
is_premium = False 588588 )
@@ -604,7 +604,7 @@ def test_postmark_webhook_non_premium_user_cannot_create_draft(self):
604604 self .assertEqual (response .status_code , 200 )
605605 # no post created
606606 self .assertFalse (models .Post .objects .exists ())
607- # upgrade email sent
607+ # subscribe to premium email sent
608608 self .assertEqual (len (mail .outbox ), 1 )
609609 self .
assertEqual (
mail .
outbox [
0 ].
to , [
"[email protected] " ])
610610 self .assertIn ("premium feature" , mail .outbox [0 ].body .lower ())
0 commit comments