From 43c7d8f0cf5862c3fdd486ed49fb2b3bed843520 Mon Sep 17 00:00:00 2001 From: Ilyas Date: Fri, 3 Nov 2023 15:36:18 +0700 Subject: [PATCH] tests --- .../tests/test_product_internal_reference_generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product_internal_reference_generator/tests/test_product_internal_reference_generator.py b/product_internal_reference_generator/tests/test_product_internal_reference_generator.py index 9e69a7c85..4ebd79190 100644 --- a/product_internal_reference_generator/tests/test_product_internal_reference_generator.py +++ b/product_internal_reference_generator/tests/test_product_internal_reference_generator.py @@ -22,6 +22,7 @@ def setUpClass(cls): cls.val4 = val_model.create({"name": "Magnesium", "attribute_id": cls.attr2.id}) cls.pt_bicycle = pt_model.create({"name": "Bicycle"}) cls.pt_car = pt_model.create({"name": "Car"}) + cls.pt_plane = pt_model.create({"name": "Plane"}) def test_all(self): self.assertFalse(self.pt_bicycle.default_code) @@ -66,3 +67,4 @@ def test_all(self): self.assertIn(df, self.pt_car.product_variant_ids[2].default_code) df = str(self.pt_seq.sequence_id.number_next_actual - 1) + "006" self.assertIn(df, self.pt_car.product_variant_ids[3].default_code) + self.assertFalse(self.pt_plane.get_variant_next_default_code())