Commit f5fc3869 authored by Łukasz Nowak's avatar Łukasz Nowak

Validate services, as this is required by restored constraints.

parent ab72db5a
......@@ -248,6 +248,17 @@ class testVifibMixin(ERP5TypeTestCase):
if isTransitionPossible(assignment, 'open'):
assignment.open()
def prepareTestServices(self):
isTransitionPossible = self.portal.portal_workflow.isTransitionPossible
for service in self.portal.portal_catalog(
portal_type="Service",
id="service_%",
):
service = service.getObject()
if isTransitionPossible(service, 'validate'):
service.validate()
def setupVifibMachineAuthenticationPlugin(self):
"""Sets up Vifib Authentication plugin"""
pas = self.getPortal().acl_users
......@@ -295,6 +306,7 @@ class testVifibMixin(ERP5TypeTestCase):
self.setupRuleTool()
self.setupNotificationModule()
self.prepareTestUsers()
self.prepareTestServices()
transaction.commit()
self.tic()
self.logout()
......
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