From 5086128f16e801a0ff0e0cf186f8e511f4611ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sun, 7 Jan 2018 14:43:54 +0100 Subject: [PATCH] Fix ill-formed url in tests --- bda/tests/test_views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]