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/purchase_stock/tests | |
| 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/purchase_stock/tests')
| -rw-r--r-- | addons/purchase_stock/tests/test_average_price.py | 7 | ||||
| -rw-r--r-- | addons/purchase_stock/tests/test_fifo_price.py | 7 | ||||
| -rw-r--r-- | addons/purchase_stock/tests/test_fifo_returns.py | 7 |
3 files changed, 12 insertions, 9 deletions
diff --git a/addons/purchase_stock/tests/test_average_price.py b/addons/purchase_stock/tests/test_average_price.py index 54331946a87..dfce8072b33 100644 --- a/addons/purchase_stock/tests/test_average_price.py +++ b/addons/purchase_stock/tests/test_average_price.py @@ -4,11 +4,12 @@ import time from .common import PurchaseTestCommon -from odoo.addons.stock_account.tests.common import StockAccountTestCommon -from odoo.tests import Form +from odoo.addons.account.tests.common import AccountTestCommon +from odoo.tests import tagged, Form -class TestAveragePrice(PurchaseTestCommon, StockAccountTestCommon): +@tagged('-at_install', 'post_install') +class TestAveragePrice(PurchaseTestCommon, AccountTestCommon): def test_00_average_price(self): """ Testcase for average price computation""" diff --git a/addons/purchase_stock/tests/test_fifo_price.py b/addons/purchase_stock/tests/test_fifo_price.py index 9a0bce37195..109ec95d24c 100644 --- a/addons/purchase_stock/tests/test_fifo_price.py +++ b/addons/purchase_stock/tests/test_fifo_price.py @@ -3,11 +3,12 @@ import time from .common import PurchaseTestCommon -from odoo.addons.stock_account.tests.common import StockAccountTestCommon -from odoo.tests import Form +from odoo.addons.account.tests.common import AccountTestCommon +from odoo.tests import tagged, Form -class TestFifoPrice(PurchaseTestCommon, StockAccountTestCommon): +@tagged('-at_install', 'post_install') +class TestFifoPrice(PurchaseTestCommon, AccountTestCommon): def test_00_test_fifo(self): """ Test product cost price with fifo removal strategy.""" diff --git a/addons/purchase_stock/tests/test_fifo_returns.py b/addons/purchase_stock/tests/test_fifo_returns.py index 14f4edb964d..0e6a0d0b932 100644 --- a/addons/purchase_stock/tests/test_fifo_returns.py +++ b/addons/purchase_stock/tests/test_fifo_returns.py @@ -3,11 +3,12 @@ import time from .common import PurchaseTestCommon -from odoo.tests.common import Form -from odoo.addons.stock_account.tests.common import StockAccountTestCommon +from odoo.tests import tagged, Form +from odoo.addons.account.tests.common import AccountTestCommon -class TestFifoReturns(PurchaseTestCommon, StockAccountTestCommon): +@tagged('-at_install', 'post_install') +class TestFifoReturns(PurchaseTestCommon, AccountTestCommon): def test_fifo_returns(self): """Test to create product and purchase order to test the FIFO returns of the product""" |
