mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 08:22:10 +01:00 
			
		
		
		
	@@ -29,6 +29,9 @@ class TestStudentParticipation(TestCase):
 | 
				
			|||||||
        StudentRegistration.objects.create(
 | 
					        StudentRegistration.objects.create(
 | 
				
			||||||
            user=self.user,
 | 
					            user=self.user,
 | 
				
			||||||
            student_class=12,
 | 
					            student_class=12,
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
            school="Earth",
 | 
					            school="Earth",
 | 
				
			||||||
            give_contact_to_animath=True,
 | 
					            give_contact_to_animath=True,
 | 
				
			||||||
            email_confirmed=True,
 | 
					            email_confirmed=True,
 | 
				
			||||||
@@ -49,6 +52,9 @@ class TestStudentParticipation(TestCase):
 | 
				
			|||||||
        StudentRegistration.objects.create(
 | 
					        StudentRegistration.objects.create(
 | 
				
			||||||
            user=self.second_user,
 | 
					            user=self.second_user,
 | 
				
			||||||
            student_class=11,
 | 
					            student_class=11,
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
            school="Moon",
 | 
					            school="Moon",
 | 
				
			||||||
            give_contact_to_animath=True,
 | 
					            give_contact_to_animath=True,
 | 
				
			||||||
            email_confirmed=True,
 | 
					            email_confirmed=True,
 | 
				
			||||||
@@ -65,7 +71,12 @@ class TestStudentParticipation(TestCase):
 | 
				
			|||||||
            email="coach@example.com",
 | 
					            email="coach@example.com",
 | 
				
			||||||
            password="coach",
 | 
					            password="coach",
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
        CoachRegistration.objects.create(user=self.coach)
 | 
					        CoachRegistration.objects.create(
 | 
				
			||||||
 | 
					            user=self.coach,
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.tournament = Tournament.objects.create(
 | 
					        self.tournament = Tournament.objects.create(
 | 
				
			||||||
            name="France",
 | 
					            name="France",
 | 
				
			||||||
@@ -214,6 +225,9 @@ class TestStudentParticipation(TestCase):
 | 
				
			|||||||
            give_contact_to_animath=True,
 | 
					            give_contact_to_animath=True,
 | 
				
			||||||
            email_confirmed=True,
 | 
					            email_confirmed=True,
 | 
				
			||||||
            team=self.team,
 | 
					            team=self.team,
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
            photo_authorization="authorization/photo/mai-linh",
 | 
					            photo_authorization="authorization/photo/mai-linh",
 | 
				
			||||||
            health_sheet="authorization/health/mai-linh",
 | 
					            health_sheet="authorization/health/mai-linh",
 | 
				
			||||||
            parental_authorization="authorization/parental/mai-linh",
 | 
					            parental_authorization="authorization/parental/mai-linh",
 | 
				
			||||||
@@ -232,6 +246,9 @@ class TestStudentParticipation(TestCase):
 | 
				
			|||||||
            give_contact_to_animath=False,
 | 
					            give_contact_to_animath=False,
 | 
				
			||||||
            email_confirmed=True,
 | 
					            email_confirmed=True,
 | 
				
			||||||
            team=self.team,
 | 
					            team=self.team,
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
            photo_authorization="authorization/photo/yohann",
 | 
					            photo_authorization="authorization/photo/yohann",
 | 
				
			||||||
            health_sheet="authorization/health/yohann",
 | 
					            health_sheet="authorization/health/yohann",
 | 
				
			||||||
            parental_authorization="authorization/parental/yohann",
 | 
					            parental_authorization="authorization/parental/yohann",
 | 
				
			||||||
@@ -250,6 +267,9 @@ class TestStudentParticipation(TestCase):
 | 
				
			|||||||
            give_contact_to_animath=False,
 | 
					            give_contact_to_animath=False,
 | 
				
			||||||
            email_confirmed=True,
 | 
					            email_confirmed=True,
 | 
				
			||||||
            team=self.team,
 | 
					            team=self.team,
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
            photo_authorization="authorization/photo/tfjm",
 | 
					            photo_authorization="authorization/photo/tfjm",
 | 
				
			||||||
            health_sheet="authorization/health/tfjm",
 | 
					            health_sheet="authorization/health/tfjm",
 | 
				
			||||||
            parental_authorization="authorization/parental/tfjm",
 | 
					            parental_authorization="authorization/parental/tfjm",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -64,9 +64,22 @@ class TestRegistration(TestCase):
 | 
				
			|||||||
        self.client.force_login(self.user)
 | 
					        self.client.force_login(self.user)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.student = User.objects.create(email="student@example.com")
 | 
					        self.student = User.objects.create(email="student@example.com")
 | 
				
			||||||
        StudentRegistration.objects.create(user=self.student, student_class=11, school="Earth")
 | 
					        StudentRegistration.objects.create(
 | 
				
			||||||
 | 
					            user=self.student,
 | 
				
			||||||
 | 
					            student_class=11,
 | 
				
			||||||
 | 
					            school="Earth",
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
        self.coach = User.objects.create(email="coach@example.com")
 | 
					        self.coach = User.objects.create(email="coach@example.com")
 | 
				
			||||||
        CoachRegistration.objects.create(user=self.coach, professional_activity="Teacher")
 | 
					        CoachRegistration.objects.create(
 | 
				
			||||||
 | 
					            user=self.coach,
 | 
				
			||||||
 | 
					            address="1 Rue de Rivoli",
 | 
				
			||||||
 | 
					            zip_code=75001,
 | 
				
			||||||
 | 
					            city="Paris",
 | 
				
			||||||
 | 
					            professional_activity="Teacher",
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test_admin_pages(self):
 | 
					    def test_admin_pages(self):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
@@ -262,6 +275,7 @@ class TestRegistration(TestCase):
 | 
				
			|||||||
                           (self.student, dict(student_class=11, school="Sky", birth_date="2001-01-01",
 | 
					                           (self.student, dict(student_class=11, school="Sky", birth_date="2001-01-01",
 | 
				
			||||||
                                               gender="female", address="1 Rue de Rivoli", zip_code=75001,
 | 
					                                               gender="female", address="1 Rue de Rivoli", zip_code=75001,
 | 
				
			||||||
                                               city="Paris", responsible_name="Toto",
 | 
					                                               city="Paris", responsible_name="Toto",
 | 
				
			||||||
 | 
					                                               responsible_phone="0123456789",
 | 
				
			||||||
                                               responsible_email="toto@example.com")),
 | 
					                                               responsible_email="toto@example.com")),
 | 
				
			||||||
                           (self.coach, dict(professional_activity="God", gender="male",
 | 
					                           (self.coach, dict(professional_activity="God", gender="male",
 | 
				
			||||||
                                             address="1 Rue de Rivoli", zip_code=75001, city="Paris"))]:
 | 
					                                             address="1 Rue de Rivoli", zip_code=75001, city="Paris"))]:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user