From 6bafa66a5a25cb767bd96f9d7abbbb02f482e2c6 Mon Sep 17 00:00:00 2001 From: rf-ife Date: Fri, 8 Nov 2024 18:33:33 +0100 Subject: [PATCH] fix test function --- .../tests/test_maintenance_equipment_sequence.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py b/maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py index 086798f82..46396dcc0 100644 --- a/maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py +++ b/maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py @@ -20,11 +20,13 @@ def test_01_maintenance_equipment_sequence(self): """ # Create category categ_1 = self.maintenance_equipment_categ_obj.create( - [{ - "name": "Test Category", - "sequence_prefix": "TTC", - "sequence_number_next": 1, - }] + [ + { + "name": "Test Category", + "sequence_prefix": "TTC", + "sequence_number_next": 1, + } + ] )[0] seq_1 = self.sequence_obj.search( [("name", "=", categ_1.name), ("prefix", "=", "TTC")], limit=1