Test to change mailing list subscription when an email address got updated

This commit is contained in:
Yohann D'ANELLO 2020-11-03 15:16:08 +01:00
parent e98540a2a8
commit 6afa1ea40b
1 changed files with 8 additions and 0 deletions

View File

@ -179,6 +179,14 @@ class TestRegistration(TestCase):
"""
Update the user information, for each type of user.
"""
# To test the modification of mailing lists
from participation.models import Team
self.student.registration.team = Team.objects.create(
name="toto",
trigram="TOT",
)
self.student.registration.save()
for user, data in [(self.user, dict(role="Bot")),
(self.student, dict(student_class=11, school="Sky")),
(self.coach, dict(professional_activity="God"))]: