mirror of
				https://gitlab.com/animath/si/plateforme-corres2math.git
				synced 2025-11-04 13:12:20 +01:00 
			
		
		
		
	Test to change mailing list subscription when an email address got updated
This commit is contained in:
		@@ -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"))]:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user