assert challenge_set.challenge.short_name in email.subject
assert approval_link in email.alternatives[0][0]
else:
with pytest.raises(IndexError):
// No emails if no review
// noinspection PyStatementEffect
mail.outbox[-1]
After Change
)
admin_emails = [
e for e in mail.outbox if challenge_set.admin.email in e.to
]
assert len(admin_emails) == 1
email = admin_emails[0]
assert challenge_set.admin.email in email.to
assert "new participation request" in email.subject.lower()
assert challenge_set.challenge.short_name in email.subject