From bc93dd98c660c013da2078cdc5de04e6ccb386db Mon Sep 17 00:00:00 2001 From: geomer198 Date: Thu, 9 Nov 2023 23:47:36 +0400 Subject: [PATCH] [FIX] Tests --- delivery_roulier/tests/test_delivery_roulier.py | 4 +--- .../tests/test_stock_picking_report_delivery_cost.py | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/delivery_roulier/tests/test_delivery_roulier.py b/delivery_roulier/tests/test_delivery_roulier.py index dfd099ec86..c04aab2c50 100644 --- a/delivery_roulier/tests/test_delivery_roulier.py +++ b/delivery_roulier/tests/test_delivery_roulier.py @@ -4,7 +4,7 @@ from odoo_test_helper import FakeModelLoader from roulier import roulier -from odoo.tests.common import TransactionCase, tagged +from odoo.tests.common import TransactionCase roulier_ret = { "parcels": [ @@ -23,7 +23,6 @@ } -@tagged("post_install", "-at_install") class DeliveryRoulierCase(TransactionCase): @classmethod def setUpClass(cls): @@ -80,7 +79,6 @@ def setUp(self): "order_line": [ (0, 0, {"product_id": product.id, "product_uom_qty": 1}) ], - "warehouse_id": self.ref("stock.warehouse0"), } ) self.env["stock.quant"].with_context(inventory_mode=True).create( diff --git a/stock_picking_report_delivery_cost/tests/test_stock_picking_report_delivery_cost.py b/stock_picking_report_delivery_cost/tests/test_stock_picking_report_delivery_cost.py index 741075f9db..470ea0ea51 100644 --- a/stock_picking_report_delivery_cost/tests/test_stock_picking_report_delivery_cost.py +++ b/stock_picking_report_delivery_cost/tests/test_stock_picking_report_delivery_cost.py @@ -33,6 +33,7 @@ def setUpClass(cls): "partner_id": cls.partner.id, "carrier_id": cls.carrier.id, "pricelist_id": cls.pricelist.id, + "warehouse_id": cls.env.ref("stock.warehouse0").id, "order_line": [ ( 0,