diff options
| author | Laurent Smet <las@odoo.com> | 2020-07-23 12:59:14 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2020-07-31 07:11:32 +0000 |
| commit | e7c9a482b74c9b73865ffd48e4c9975914954e52 (patch) | |
| tree | 27f9ee6aa2753b4456528da93261c765b813fbc6 /addons/stock_landed_costs | |
| parent | f0a50da53e027ed6305323070625595894d5511c (diff) | |
[IMP] point_of_sale,stock_*: Remove StockAccountTestCommon setup class
If run post_install, this setup class is not necessary.
Diffstat (limited to 'addons/stock_landed_costs')
3 files changed, 7 insertions, 5 deletions
diff --git a/addons/stock_landed_costs/tests/test_stock_landed_costs.py b/addons/stock_landed_costs/tests/test_stock_landed_costs.py index f07bedd6829..caf452258d6 100644 --- a/addons/stock_landed_costs/tests/test_stock_landed_costs.py +++ b/addons/stock_landed_costs/tests/test_stock_landed_costs.py @@ -2,7 +2,6 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.stock_landed_costs.tests.common import TestStockLandedCostsCommon -from odoo.addons.stock_account.tests.common import StockAccountTestCommon from odoo.exceptions import ValidationError from odoo.tests import tagged diff --git a/addons/stock_landed_costs/tests/test_stock_landed_costs_rounding.py b/addons/stock_landed_costs/tests/test_stock_landed_costs_rounding.py index 2cfcb7b1b75..5fd0b1d45a8 100644 --- a/addons/stock_landed_costs/tests/test_stock_landed_costs_rounding.py +++ b/addons/stock_landed_costs/tests/test_stock_landed_costs_rounding.py @@ -2,12 +2,12 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.addons.stock_landed_costs.tests.common import TestStockLandedCostsCommon -from odoo.addons.stock_account.tests.common import StockAccountTestCommon +from odoo.addons.account.tests.common import AccountTestCommon from odoo.tests import tagged @tagged('post_install', '-at_install') -class TestStockLandedCostsRounding(TestStockLandedCostsCommon, StockAccountTestCommon): +class TestStockLandedCostsRounding(TestStockLandedCostsCommon, AccountTestCommon): def test_stock_landed_costs_rounding(self): # In order to test the rounding in landed costs feature of stock, I create 2 landed cost diff --git a/addons/stock_landed_costs/tests/test_stockvaluationlayer.py b/addons/stock_landed_costs/tests/test_stockvaluationlayer.py index 770c05aa274..81dcd1977fd 100644 --- a/addons/stock_landed_costs/tests/test_stockvaluationlayer.py +++ b/addons/stock_landed_costs/tests/test_stockvaluationlayer.py @@ -6,10 +6,10 @@ from odoo.tests import Form, tagged from odoo.addons.stock_account.tests.test_stockvaluationlayer import TestStockValuationCommon from odoo.addons.stock_account.tests.test_stockvaluation import _create_accounting_data -from odoo.addons.stock_account.tests.common import StockAccountTestCommon +from odoo.addons.account.tests.common import AccountTestCommon -class TestStockValuationLCCommon(TestStockValuationCommon, StockAccountTestCommon): +class TestStockValuationLCCommon(TestStockValuationCommon, AccountTestCommon): @classmethod def setUpClass(cls): @@ -78,6 +78,7 @@ class TestStockValuationLCCommon(TestStockValuationCommon, StockAccountTestCommo return lc +@tagged('-at_install', 'post_install') class TestStockValuationLCFIFO(TestStockValuationLCCommon): def setUp(self): super(TestStockValuationLCFIFO, self).setUp() @@ -193,6 +194,7 @@ class TestStockValuationLCFIFO(TestStockValuationLCCommon): self.assertEqual(move2.stock_valuation_layer_ids.value, -115) +@tagged('-at_install', 'post_install') class TestStockValuationLCAVCO(TestStockValuationLCCommon): def setUp(self): super(TestStockValuationLCAVCO, self).setUp() @@ -235,6 +237,7 @@ class TestStockValuationLCAVCO(TestStockValuationLCCommon): self.assertEqual(self.product1.quantity_svl, 19) +@tagged('-at_install', 'post_install') class TestStockValuationLCFIFOVB(TestStockValuationLCCommon): @classmethod def setUpClass(cls): |
