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
0
Merge Requests
0
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
Lu Xu
slapos.core
Commits
b4459be7
Commit
b4459be7
authored
Oct 29, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SlapOS Product] add _makeComputerNetwork helper to testSlapOSMixin.
Also return created objects for _createComputer.
parent
15763b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
master/product/SlapOS/tests/testSlapOSMixin.py
master/product/SlapOS/tests/testSlapOSMixin.py
+12
-0
No files found.
master/product/SlapOS/tests/testSlapOSMixin.py
View file @
b4459be7
...
...
@@ -285,6 +285,18 @@ class testSlapOSMixin(ERP5TypeTestCase):
self
.
partition
.
markFree
()
self
.
partition
.
validate
()
self
.
tic
()
return
self
.
computer
,
self
.
partition
def
_makeComputerNetwork
(
self
):
reference
=
'TESTCOMPNETWORK-%s'
%
self
.
generateNewId
()
self
.
computer_network
=
self
.
portal
.
computer_network_module
.
newContent
(
portal_type
=
'Computer Network'
,
reference
=
reference
,
title
=
reference
)
self
.
computer_network
.
validate
()
self
.
tic
()
return
self
.
computer_network
def
_makeComplexComputer
(
self
,
person
=
None
,
with_slave
=
False
):
for
i
in
range
(
1
,
5
):
...
...
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