1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00
This commit is contained in:
bleizi 2023-08-30 16:16:29 +02:00
parent 4ab22c92b3
commit c6a2849d35
No known key found for this signature in database
GPG Key ID: D46D7E3364433208

View File

@ -647,7 +647,7 @@ class TestWEIRegistration(TestCase):
first_name="admin", first_name="admin",
bank="Société générale", bank="Société générale",
)) ))
self.assertRedirects(response, reverse("wei:wei_detail", kwargs=dict(pk=self.registration.wei.pk)), 302, 200) self.assertRedirects(response, reverse("wei:wei_registrations", kwargs=dict(pk=self.registration.wei.pk)), 302, 200)
# Check if the membership is successfully created # Check if the membership is successfully created
membership = WEIMembership.objects.filter(user_id=self.user.id, club=self.wei) membership = WEIMembership.objects.filter(user_id=self.user.id, club=self.wei)
self.assertTrue(membership.exists()) self.assertTrue(membership.exists())