From 39d735e44db8830a1fd130e0aee7d848b9403f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 3 Dec 2020 04:16:25 +0100 Subject: [PATCH] testUpgradeInstanceWithOldDataFs: enable erp5-bin bt repository Since c4026c7530 (erp5_officejs: change Notebook app editor from iodide_master to gadget_jsmd_eval, 2020-09-23), erp5_officejs depends on erp5_notebook, but erp5_notebook is not present in erp5 repository, it is in erp5-bin repository. This test works by taking an old Data.fs and running upgrader, to update to latest code. The first thing it does is using setupAutomaticBusinessTemplateRepository to discover folder containing business templates repositories and enabling them. Until now it was doing only for erp5_core (to find parts/erp5/product/ERP5/bootstrap) and for erp5_base (to find parts/erp5/bt5/). Now we also need to do that for erp5_notebook, to find parts/erp5-bin/bt5/ --- product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py b/product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py index 10e3a90206..3ef524c47a 100644 --- a/product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py +++ b/product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py @@ -73,7 +73,7 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase): def testUpgrade(self): if not self.portal.portal_templates.getRepositoryList(): self.setupAutomaticBusinessTemplateRepository( - searchable_business_template_list=["erp5_core", "erp5_base"]) + searchable_business_template_list=["erp5_core", "erp5_base", "erp5_notebook"]) from Products.ERP5Type.tests.utils import createZODBPythonScript createZODBPythonScript( -- 2.30.9