From c209a69267d65db9b5807ea6ab05813c33bb00c7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 3 Sep 2019 16:36:57 +0200 Subject: Fix custom form test (unicity problem) --- archaeological_operations/tests.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'archaeological_operations/tests.py') diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 53ecba049..647f0f86e 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -1524,8 +1524,9 @@ class CustomFormTest(TestCase, OperationInitTest): key_in_charge, response.content.decode(), msg="filter all - 'in charge' field not found on the modification " "wizard") - f = CustomForm.objects.create(name="Test", form="operation-010-general", - available=True, apply_to_all=True) + f = CustomForm.objects.create( + name="Test - all", form="operation-010-general", + available=True, apply_to_all=True) ExcludedField.objects.create(custom_form=f, field="in_charge") response = c.post(url, data) @@ -1536,7 +1537,8 @@ class CustomFormTest(TestCase, OperationInitTest): # user type form prevail on "all" f_scientist = CustomForm.objects.create( - name="Test", form="operation-010-general", available=True) + name="Test - user", form="operation-010-general", + available=True) tpe = PersonType.objects.get(txt_idx='head_scientist') key_address = "address" f_scientist.user_types.add(tpe) -- cgit v1.2.3