diff --git a/bda/tests/test_views.py b/bda/tests/test_views.py index 038297d8..3ee46792 100644 --- a/bda/tests/test_views.py +++ b/bda/tests/test_views.py @@ -160,7 +160,8 @@ class TestBdAViews(BdATestHelpers, TestCase): def test_send_reminders(self): self.require_custommails() # Just get the page - url = "/bda/mails-rappel/{}".format(self.tirage.id) + show = self.tirage.spectacle_set.first() + url = "/bda/mails-rappel/{}".format(show.id) self.check_restricted_access(url, validate_user=user_is_staff) # Actually send the reminder emails _, staff_c = self.client_matrix[0]