Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5 erp5
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 139
    • Merge requests 139
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !994

Open
Created Nov 28, 2019 by Thomas Gambier@tomo🚴🏼Owner
  • Report abuse
Report abuse

ERP5 tests: add all repository URLs when creating the site

  • Overview 4
  • Commits 1
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: tests_use_bt5_repository_url
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7