Commit 39d735e4 authored by Jérome Perrin's avatar Jérome Perrin

testUpgradeInstanceWithOldDataFs: enable erp5-bin bt repository

Since c4026c75 (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/
parent 93b6807f
Pipeline #12623 failed with stage
...@@ -73,7 +73,7 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase): ...@@ -73,7 +73,7 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
def testUpgrade(self): def testUpgrade(self):
if not self.portal.portal_templates.getRepositoryList(): if not self.portal.portal_templates.getRepositoryList():
self.setupAutomaticBusinessTemplateRepository( 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 from Products.ERP5Type.tests.utils import createZODBPythonScript
createZODBPythonScript( createZODBPythonScript(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment