Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 141
    • Merge requests 141
  • 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
  • nexedi
  • erp5erp5
  • Merge requests
  • !1760

Closed
Created Mar 22, 2023 by Kazuhiko Shiozaki@kazuhikoOwner
  • Report abuse
Report abuse

Test dynamic methods

  • Overview 10
  • Commits 2
  • Changes 4

Without the second commit, testSecurity will fail like :

  File "/SR/parts/erp5/Products/ERP5/tests/testSecurity.py", line 113, in test_method_protection
    self.fail(message)
AssertionError: 
The following 7 methods have a docstring but have no security assertions.
	/SR/parts/erp5/product/ERP5Form/PreferenceTool.py:64 isPreferredVcsPushMode
	/SR/parts/erp5/product/ERP5Type/Accessor/AcquiredProperty.py:217 hasTelephoneValidationState
	/SR/parts/erp5/product/ERP5Type/Accessor/Base.py:219 hasViewFormIdList
	/SR/parts/erp5/product/ERP5Type/Accessor/Constant.py:94 isWebDocumentType
	/SR/parts/erp5/product/ERP5Type/Accessor/Content.py:224 hasImage
	/SR/parts/erp5/product/ERP5Type/Accessor/ContentProperty.py:283 hasImageWidthList
	/SR/parts/erp5/product/ERP5Type/Accessor/Translation.py:233 hasFrTranslatedTitle

/cc @jerome

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