From 2bbee6e79d38262d173c19d7d087d4978280c5d3 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 25 Mar 2020 08:03:28 +0100 Subject: [PATCH] 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. --- stock_cubiscan/tests/test_cubiscan_wizard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stock_cubiscan/tests/test_cubiscan_wizard.py b/stock_cubiscan/tests/test_cubiscan_wizard.py index ad4e3d941..321fbdbed 100644 --- a/stock_cubiscan/tests/test_cubiscan_wizard.py +++ b/stock_cubiscan/tests/test_cubiscan_wizard.py @@ -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),