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
1 changed files with 1 additions and 1 deletions

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())