Commit 8b8f240d authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: drop template_software_instance

parent 93579d9a
...@@ -64,10 +64,7 @@ class TestSlapOSAuthenticationPolicyL(SlapOSTestCaseMixin): ...@@ -64,10 +64,7 @@ class TestSlapOSAuthenticationPolicyL(SlapOSTestCaseMixin):
def _makeDummySoftwareInstance(self): def _makeDummySoftwareInstance(self):
software_instance = self.portal.software_instance_module\ software_instance = self.portal.software_instance_module\
.template_software_instance.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Software Instance")
software_instance = self.portal.software_instance_module\
.template_software_instance.Base_createCloneDocument(batch_mode=1)
software_instance.edit( software_instance.edit(
title=self.generateNewSoftwareTitle(), title=self.generateNewSoftwareTitle(),
......
...@@ -882,7 +882,7 @@ class TestSlaveInstance(TestSlapOSGroupRoleSecurityMixin): ...@@ -882,7 +882,7 @@ class TestSlaveInstance(TestSlapOSGroupRoleSecurityMixin):
provider_reference = 'TESTSI-%s' % self.generateNewId() provider_reference = 'TESTSI-%s' % self.generateNewId()
provider = self.portal.software_instance_module\ provider = self.portal.software_instance_module\
.template_software_instance.Base_createCloneDocument(batch_mode=1) .newContent(portal_type="Software Instance")
provider.edit(reference=provider_reference, provider.edit(reference=provider_reference,
aggregate=partition.getRelativeUrl()) aggregate=partition.getRelativeUrl())
......
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