Fix ill-formed url in tests

This commit is contained in:
Martin Pépin 2018-01-07 14:43:54 +01:00
parent c80e63415b
commit 5086128f16

View file

@ -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]