Fix flaky test in cubiscan measures

The module product_packaging_type creates a packaging type "Default
Type" with sequence 1. In the test, the "unit" is created with sequence
1 too, which makes the ordering of the packagings in the test
"test_cubiscan_measures" undeterministic.

Note: "unit" should not be a packaging type, although the wizard should
allow to change the width, length and weight of the product too.
This commit is contained in:
Guewen Baconnier
2020-03-25 08:03:28 +01:00
parent 90d4300762
commit 2bbee6e79d

View File

@@ -32,8 +32,8 @@ class TestCubiscanWizard(SavepointCase):
cls.cs_wizard = cls.env["cubiscan.wizard"]
PackType = cls.env["product.packaging.type"]
pack_type_data = [
("unit", 1, 0, 0),
("internal", 2, 1, 0),
("unit", 2, 0, 0),
("internal", 3, 1, 0),
("retail", 10, 1, 1),
("transport", 20, 1, 1),
("pallet", 30, 1, 1),