Commit 3765d94b authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: fixup tests

parent 068d76bc
......@@ -24,8 +24,12 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin
class TestSlapOSDestroySoftwareInstallation(SlapOSTestCaseMixin):
def bootstrapSoftwareInstallation(self, is_allocated=True, is_supplied=True):
software_product, release_variation, type_variation, compute_node, _ = \
self.bootstrapAllocableInstanceTree(is_allocated=is_allocated)
if is_allocated:
allocation_state = 'allocated'
else:
allocation_state = 'possible'
software_product, release_variation, type_variation, compute_node, _, _ = \
self.bootstrapAllocableInstanceTree(allocation_state=allocation_state)
software_installation = self.portal.software_installation_module.newContent(
portal_type='Software Installation',
......
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