mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_archive_constraint: Tests more resilient when other modules have been installed
This commit is contained in:
committed by
Carlos Lopez
parent
7df982f365
commit
ec2fd46762
@@ -9,6 +9,9 @@ class TestLocationArchiveConstraint(TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.env = cls.env(
|
||||
context=dict(cls.env.context, test_stock_archive_constraint=True)
|
||||
)
|
||||
cls.company = cls.env.ref("base.main_company")
|
||||
cls.product_1 = cls._create_product(cls, "Product 1")
|
||||
cls.product_2 = cls._create_product(cls, "Product 2")
|
||||
|
||||
Reference in New Issue
Block a user