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())