From 17057a5fe5ac9c8cc0ed8276565a98c44d358dab Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 20 Jan 2024 18:39:45 +0100 Subject: [PATCH] Fix tests for the new last_degree field Signed-off-by: Emmy D'Anello --- registration/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/registration/tests.py b/registration/tests.py index 6a26db3..d030f31 100644 --- a/registration/tests.py +++ b/registration/tests.py @@ -196,6 +196,7 @@ class TestRegistration(TestCase): city="Paris", phone_number="0123456789", professional_activity="God", + last_degree="Master", give_contact_to_animath=True, )) self.assertRedirects(response, reverse("registration:email_validation_sent"), 302, 200) @@ -276,7 +277,7 @@ class TestRegistration(TestCase): city="Paris", responsible_name="Toto", responsible_phone="0123456789", 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"))]: response = self.client.get(reverse("registration:update_user", args=(user.pk,))) self.assertEqual(response.status_code, 200)