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
......@@ -96,6 +96,11 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
expected_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):
testSlapOSMixin.afterSetUp(self)
self.changeSkin('View')
......
......@@ -28,7 +28,10 @@ class TestSlapOSGroupRoleSecurityCoverage(SlapOSTestCaseMixinWithAbort):
def testCoverage(self):
""" 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 = []
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