Commit 7cb0769c authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: Move script id for test mixin

  Since we an introduce more roles on project specific scope, like payroll and more general acccounting,
  use mixing for this allow us to extend it on Project specific mixin.
parent 7aaa3255
Pipeline #17912 failed with stage
in 0 seconds
...@@ -96,6 +96,11 @@ class SlapOSTestCaseMixin(testSlapOSMixin): ...@@ -96,6 +96,11 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
expected_slapos_organisation = "organisation_module/slapos" expected_slapos_organisation = "organisation_module/slapos"
expected_zh_slapos_organisation = "organisation_module/slapos" expected_zh_slapos_organisation = "organisation_module/slapos"
# Used by testSlapOSERP5GroupRoleSecurity.TestSlapOSGroupRoleSecurityCoverage for
# searh classes for assert overage
security_group_role_test_id_list = ['test.erp5.testSlapOSERP5GroupRoleSecurity']
def afterSetUp(self): def afterSetUp(self):
testSlapOSMixin.afterSetUp(self) testSlapOSMixin.afterSetUp(self)
self.changeSkin('View') self.changeSkin('View')
......
...@@ -28,7 +28,10 @@ class TestSlapOSGroupRoleSecurityCoverage(SlapOSTestCaseMixinWithAbort): ...@@ -28,7 +28,10 @@ class TestSlapOSGroupRoleSecurityCoverage(SlapOSTestCaseMixinWithAbort):
def testCoverage(self): def testCoverage(self):
""" Test which Portal types are not covered by this test. """ Test which Portal types are not covered by this test.
""" """
test_source_code = self.portal.portal_components['test.erp5.testSlapOSERP5GroupRoleSecurity'].getTextContent()
test_source_code = ""
for test_file_id in self.security_group_role_test_id_list:
test_source_code += self.portal.portal_components[test_file_id].getTextContent()
test_list = [] test_list = []
for pt in self.portal.portal_types.objectValues(): for pt in self.portal.portal_types.objectValues():
......
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