From fb9686cf4e34377e67e8bcd2ad6f6a07d6cb44e3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 26 Jun 2023 17:11:56 +0200 Subject: ✅ fix operation wizard test with operation code required MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/tests.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'archaeological_operations') diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 605f4e46f..cf3cfb4a6 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -3673,7 +3673,7 @@ class OperationWizardModifTest(WizardTest, OperationInitTest, TestCase): "Update an operation", form_datas={ "selec": {}, - "general": {"operation_type": 2, "year": 2017, "town": []}, + "general": {"code_patriarche": "123", "operation_type": 2, "year": 2017, "town": []}, }, ignored=base_ignored_steps, ), @@ -3694,7 +3694,7 @@ class OperationWizardModifTest(WizardTest, OperationInitTest, TestCase): "Operation: remove a parcel with no attached context record", form_datas={ "selec": {}, - "general": {"operation_type": 2, "year": 2017, "town": []}, + "general": {"code_patriarche": "1234", "operation_type": 2, "year": 2017, "town": []}, }, ignored=base_ignored_steps, ), @@ -3702,7 +3702,7 @@ class OperationWizardModifTest(WizardTest, OperationInitTest, TestCase): "Set an operation to an exiting operation code for this year", form_datas={ "selec": {}, - "general": {"operation_type": 2, "operation_code": 42, + "general": {"code_patriarche": "12345", "operation_type": 2, "operation_code": 42, "year": 2017, "town": []}, }, ignored=base_ignored_steps, @@ -3712,7 +3712,7 @@ class OperationWizardModifTest(WizardTest, OperationInitTest, TestCase): "Operation: change a parcel", form_datas={ "selec": {}, - "general": {"operation_type": 2, "year": 2017, "town": []}, + "general": {"code_patriarche": "123456", "operation_type": 2, "year": 2017, "town": []}, }, ignored=base_ignored_steps, ), @@ -3720,7 +3720,7 @@ class OperationWizardModifTest(WizardTest, OperationInitTest, TestCase): "Operation: change a town", form_datas={ "selec": {}, - "general": {"operation_type": 2, "year": 2017, "town": []}, + "general": {"code_patriarche": "1234567", "operation_type": 2, "year": 2017, "town": []}, }, ignored=base_ignored_steps, ), -- cgit v1.2.3