From 1a451903577cbdc90a6a84a7033147e07c7e0c6c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 10 Dec 2018 14:57:00 +0100 Subject: Fix test --- archaeological_finds/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archaeological_finds/tests.py') diff --git a/archaeological_finds/tests.py b/archaeological_finds/tests.py index 1f26463ca..f609fff47 100644 --- a/archaeological_finds/tests.py +++ b/archaeological_finds/tests.py @@ -796,7 +796,8 @@ class FindQATest(FindInit, TestCase): reverse('find-qa-bulk-update-confirm', args=[pks]), {'qa_period': period, 'qa_description': extra_desc} ) - self.assertRedirects(response, '/success/') + if response.status_code != 200: + self.assertRedirects(response, '/success/') self.assertIn(period, [dating.period.pk for dating in find_0.datings.all()]) self.assertIn(period, -- cgit v1.2.3