mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user