Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !994

ERP5 tests: add all repository URLs when creating the site

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Thomas Gambier requested to merge tomo/erp5:tests_use_bt5_repository_url into master Nov 28, 2019
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

When creating the site, the function setUpERP5Site (https://lab.nexedi.com/nexedi/erp5/blob/master/product/ERP5Type/tests/ERP5TypeTestCase.py#L1143) of tests will install the BT listed in getBusinessTemplateList() but it won't set the repository_dict of template tool.

In order to find the repositories, we are using the variable erp5_tests_bt5_path in _getBTPathAndIdList.

In testSlapOSMixin we need to override _getSiteCreationParameterDict to set the bt5_repository_url argument of create_site which I think we whouldn't need.

The current behaviour is confusing because for a "real" installation of ERP5, we are using the argument bt5_repository_url (from initsite product-config) which is the same as erp5_tests_bt5_path`. But in "tests" installation, we don't have anything setup in repository_dict by default.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: tests_use_bt5_repository_url
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7