mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-02-06 08:53:00 +00:00
Test to change mailing list subscription when an email address got updated
This commit is contained in:
parent
e98540a2a8
commit
6afa1ea40b
@ -179,6 +179,14 @@ class TestRegistration(TestCase):
|
|||||||
"""
|
"""
|
||||||
Update the user information, for each type of user.
|
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")),
|
for user, data in [(self.user, dict(role="Bot")),
|
||||||
(self.student, dict(student_class=11, school="Sky")),
|
(self.student, dict(student_class=11, school="Sky")),
|
||||||
(self.coach, dict(professional_activity="God"))]:
|
(self.coach, dict(professional_activity="God"))]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user