From 6afa1ea40b3a233b7beb994d072abf0222ce96e8 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 3 Nov 2020 15:16:08 +0100 Subject: [PATCH] Test to change mailing list subscription when an email address got updated --- apps/registration/tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/registration/tests.py b/apps/registration/tests.py index 5991cdb..a2d0947 100644 --- a/apps/registration/tests.py +++ b/apps/registration/tests.py @@ -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"))]: