Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
9ede4b98
Commit
9ede4b98
authored
Jan 26, 2023
by
Romain Courteaud
🐸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_pdm: fixup tests
parent
b2ae30b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
master/bt5/slapos_pdm/TestTemplateItem/portal_components/test.erp5.testSlapOSPDMDestroySoftwareInstallation.py
...nts/test.erp5.testSlapOSPDMDestroySoftwareInstallation.py
+6
-2
No files found.
master/bt5/slapos_pdm/TestTemplateItem/portal_components/test.erp5.testSlapOSPDMDestroySoftwareInstallation.py
View file @
9ede4b98
...
@@ -24,8 +24,12 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin
...
@@ -24,8 +24,12 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin
class
TestSlapOSDestroySoftwareInstallation
(
SlapOSTestCaseMixin
):
class
TestSlapOSDestroySoftwareInstallation
(
SlapOSTestCaseMixin
):
def
bootstrapSoftwareInstallation
(
self
,
is_allocated
=
True
,
is_supplied
=
True
):
def
bootstrapSoftwareInstallation
(
self
,
is_allocated
=
True
,
is_supplied
=
True
):
software_product
,
release_variation
,
type_variation
,
compute_node
,
_
=
\
if
is_allocated
:
self
.
bootstrapAllocableInstanceTree
(
is_allocated
=
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
(
software_installation
=
self
.
portal
.
software_installation_module
.
newContent
(
portal_type
=
'Software Installation'
,
portal_type
=
'Software Installation'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment