mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 10:22:11 +01:00 
			
		
		
		
	Fix tests for the new last_degree field
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -196,6 +196,7 @@ class TestRegistration(TestCase):
 | 
				
			|||||||
            city="Paris",
 | 
					            city="Paris",
 | 
				
			||||||
            phone_number="0123456789",
 | 
					            phone_number="0123456789",
 | 
				
			||||||
            professional_activity="God",
 | 
					            professional_activity="God",
 | 
				
			||||||
 | 
					            last_degree="Master",
 | 
				
			||||||
            give_contact_to_animath=True,
 | 
					            give_contact_to_animath=True,
 | 
				
			||||||
        ))
 | 
					        ))
 | 
				
			||||||
        self.assertRedirects(response, reverse("registration:email_validation_sent"), 302, 200)
 | 
					        self.assertRedirects(response, reverse("registration:email_validation_sent"), 302, 200)
 | 
				
			||||||
@@ -276,7 +277,7 @@ class TestRegistration(TestCase):
 | 
				
			|||||||
                                               city="Paris", responsible_name="Toto",
 | 
					                                               city="Paris", responsible_name="Toto",
 | 
				
			||||||
                                               responsible_phone="0123456789",
 | 
					                                               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", last_degree="Médaille Fields", gender="male",
 | 
				
			||||||
                                             address="1 Rue de Rivoli", zip_code=75001, city="Paris"))]:
 | 
					                                             address="1 Rue de Rivoli", zip_code=75001, city="Paris"))]:
 | 
				
			||||||
            response = self.client.get(reverse("registration:update_user", args=(user.pk,)))
 | 
					            response = self.client.get(reverse("registration:update_user", args=(user.pk,)))
 | 
				
			||||||
            self.assertEqual(response.status_code, 200)
 | 
					            self.assertEqual(response.status_code, 200)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user