1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-05 02:06:52 +00:00

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

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"))]: