Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eodolphi committed Aug 10, 2022
1 parent 8dba5c8 commit bfe6f7e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions bluebottle/activities/tests/test_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ def test_team_added_notification(self):
self.assertRecipients([self.activity.owner])
self.assertSubject("A new team has joined \"Save the world!\"")
self.assertTextBodyContains("Team William Shatner has joined your activity \"Save the world!\".")
self.assertBodyContains('Please contact them to sort out any details via kirk@enterprise.com.')
self.assertBodyContains(
'Add this information to the team via the unscheduled team list on the activity '
'page so it is visible for the team members.'
)
self.assertActionLink(self.obj.activity.get_absolute_url())
self.assertActionTitle('View activity')

Expand All @@ -109,8 +112,10 @@ def test_team_applied_notification(self):
self.assertRecipients([self.activity.owner])
self.assertSubject("A new team has applied to \"Save the world!\"")
self.assertTextBodyContains("Team William Shatner has applied to your activity \"Save the world!\".")
self.assertBodyContains('Please contact them to sort out any details via kirk@enterprise.com.')
self.assertBodyContains('You can accept or reject the team on the activity page.')
self.assertBodyContains(
'Add this information to the team via the unscheduled team list on the activity '
'page so it is visible for the team members.'
)

self.assertActionLink(self.obj.activity.get_absolute_url())
self.assertActionTitle('View activity')
Expand Down

0 comments on commit bfe6f7e

Please sign in to comment.