mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
test
This commit is contained in:
parent
4ab22c92b3
commit
c6a2849d35
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user