From e08f3ee316a976b25eaefc8a267a7ecb83d3f694 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 2 Jan 2018 17:06:56 +0100 Subject: Fix tests for custom forms (update slugs) --- archaeological_operations/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index af6199774..21b7da2a0 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1178,7 +1178,7 @@ class CustomFormTest(TestCase, OperationInitTest): key_in_charge, response.content, msg="filter all - 'in charge' field not found on the modification " "wizard") - f = CustomForm.objects.create(name="Test", form="operation-general", + f = CustomForm.objects.create(name="Test", form="operation-010-general", available=True, apply_to_all=True) ExcludedField.objects.create(custom_form=f, field="in_charge") @@ -1190,7 +1190,7 @@ class CustomFormTest(TestCase, OperationInitTest): # user type form prevail on "all" f_scientist = CustomForm.objects.create( - name="Test", form="operation-general", available=True) + name="Test", form="operation-010-general", available=True) tpe = PersonType.objects.get(txt_idx='head_scientist') key_address = "address" f_scientist.user_types.add(tpe) @@ -1208,7 +1208,7 @@ class CustomFormTest(TestCase, OperationInitTest): # user prevail on "all" and "user_types" f_user = CustomForm.objects.create( - name="Test", form="operation-general", available=True) + name="Test", form="operation-010-general", available=True) f_user.users.add(self.user.ishtaruser) self.user.ishtaruser.person.person_types.add(tpe) response = c.post(url, data) @@ -1239,7 +1239,7 @@ class CustomFormTest(TestCase, OperationInitTest): response = c.post(url, data) self.assertNotEqual(response.status_code, 404) CustomForm.objects.create( - name="Test2", form="operation-collaborators", available=True, + name="Test2", form="operation-020-collaborators", available=True, apply_to_all=True, enabled=False) response = c.post(url, data) self.assertEqual(response.status_code, 404) -- cgit v1.2.3