diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-03 16:36:57 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-09-03 16:36:57 +0200 |
commit | c209a69267d65db9b5807ea6ab05813c33bb00c7 (patch) | |
tree | 8f73085234142b136cc02d7c5f5e4dba6a827b5c | |
parent | 0e88cd881386ee410434cf7fbb065bc1e8058b08 (diff) | |
download | Ishtar-c209a69267d65db9b5807ea6ab05813c33bb00c7.tar.bz2 Ishtar-c209a69267d65db9b5807ea6ab05813c33bb00c7.zip |
Fix custom form test (unicity problem)
-rw-r--r-- | archaeological_operations/tests.py | 8 |
1 files changed, 5 insertions, 3 deletions
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) |