From 2c16088298864c7320d923503033f0f769bffbb5 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 19 Jan 2024 14:55:10 +0100 Subject: [PATCH] [FIX] barcodes_gs1_nomenclature: deduplicate tests When inheriting from a test class having tests methods, the tests are played twice. In this particular case, the inheritance was not necessary at all. closes odoo/odoo#150287 X-original-commit: 839fa009f3f032cb45c56acfe237933bf0fb69c9 Signed-off-by: Arnold Moyaux (arm) Signed-off-by: Christophe Monniez (moc) --- .../tests/test_barcodes_gs1_nomenclature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/barcodes_gs1_nomenclature/tests/test_barcodes_gs1_nomenclature.py b/addons/barcodes_gs1_nomenclature/tests/test_barcodes_gs1_nomenclature.py index e815da89a62..23a0fae84cf 100644 --- a/addons/barcodes_gs1_nomenclature/tests/test_barcodes_gs1_nomenclature.py +++ b/addons/barcodes_gs1_nomenclature/tests/test_barcodes_gs1_nomenclature.py @@ -1,8 +1,8 @@ -from odoo.addons.barcodes.tests.test_barcode_nomenclature import TestBarcodeNomenclature from odoo.exceptions import ValidationError +from odoo.tests.common import TransactionCase -class TestBarcodeGS1Nomenclature(TestBarcodeNomenclature): +class TestBarcodeGS1Nomenclature(TransactionCase): def test_gs1_date_to_date(self): barcode_nomenclature = self.env['barcode.nomenclature'] # 20/10/2015 -> 151020