diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-02 17:06:56 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-02 17:06:56 +0100 |
commit | e08f3ee316a976b25eaefc8a267a7ecb83d3f694 (patch) | |
tree | f3e306c9917b1b88efc47ffa43588b560949dcbe /archaeological_operations | |
parent | e427cf83c46fa44b331d7c4d6251b7de348bad96 (diff) | |
download | Ishtar-e08f3ee316a976b25eaefc8a267a7ecb83d3f694.tar.bz2 Ishtar-e08f3ee316a976b25eaefc8a267a7ecb83d3f694.zip |
Fix tests for custom forms (update slugs)
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |