Security of tester accessors
The first commit of this merge request was introduced for zope4py3 branch but it revealed issues on py2 as well, i.e. we don't have roles in auto-generated tester methods. ``` ====================================================================== FAIL: test_method_protection (testSecurity.TestSecurity) This test will list all implicitly Public methods in any objects in ZODB. ---------------------------------------------------------------------- Traceback (most recent call last): 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:65 isPreferredVcsPushMode /srv/slapgrid/slappart19/t/eiy/soft/8a7759fd7b65b20d9f87713605745d05/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 ---------------------------------------------------------------------- ``` See merge request !1911
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#674480
external
|
ERP5.CodingStyleTest-Master |
01:06:28
|
||||||
failed |
#674505
external
|
ERP5.PerformanceTest-Master |
00:35:16
|
||||||
failed |
#674483
external
|
ERP5.UnitTest-Master |
02:23:41
|
||||||
failed |
#674525
external
|
ERP5.UnitTest-Master-GhostscriptUp |
|
||||||
passed |
#674499
external
|
SlapOS.Eggs.UnitTest-Master.Python2 |
00:14:16
|
||||||
passed |
#674481
external
|
SlapOS.Eggs.UnitTest-Master.Python3 |
00:21:53
|
||||||
passed |
#674489
external
|
Wendelin.UnitTest-Master |
00:48:50
|
||||||