Commit f9fd0751 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: SlapOSTestCaseMixin ensure template don't contains a Login before clone it.

parent d37df664
......@@ -83,6 +83,11 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
testSlapOSMixin.afterSetUp(self)
self.new_id = self.generateNewId()
instance_template = self.portal.software_instance_module.template_software_instance
if len(instance_template.objectValues()):
instance_template.manage_delObjects(
ids=[i.getId() for i in instance_template.objectValues()])
def makePerson(self, new_id=None, index=True, user=True):
if new_id is None:
......
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