Fix tests

This commit is contained in:
2020-09-30 09:08:20 +01:00
parent 84c4ec03de
commit f70421b8ca
4 changed files with 879 additions and 858 deletions

View File

@@ -509,7 +509,7 @@ class TestHSLogic(TestCase):
extinguishers_location="Somewhere, I forgot",
earthing=False,
pat=False,
medium_event=False
event_size=0
),
}
@@ -551,10 +551,3 @@ class TestHSLogic(TestCase):
response = self.client.get(request_url, follow=True)
self.assertRedirects(response, expected_url, status_code=302, target_status_code=200)
def test_checklist_redirect(self):
request_url = reverse('event_ec', kwargs={'pk': self.events[1].pk})
expected_url = reverse('ec_edit', kwargs={'pk': self.checklists[1].pk})
response = self.client.get(request_url, follow=True)
self.assertRedirects(response, expected_url, status_code=302, target_status_code=200)