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
Roque
slapos.core
Commits
bef72c49
Commit
bef72c49
authored
Jun 20, 2013
by
Marco Mariani
Committed by
Cédric de Saint Martin
Jun 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: simpler if..else logic (think straight!)
parent
0b662b60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
slapos/tests/slap.py
slapos/tests/slap.py
+2
-4
No files found.
slapos/tests/slap.py
View file @
bef72c49
...
...
@@ -43,12 +43,10 @@ class SlapMixin(unittest.TestCase):
Usefull methods for slap tests
"""
def
setUp
(
self
):
self
.
_server_url
=
os
.
environ
.
get
(
'TEST_SLAP_SERVER_URL'
,
None
)
if
self
.
_server_url
is
None
:
self
.
server_url
=
os
.
environ
.
get
(
'TEST_SLAP_SERVER_URL'
)
if
not
self
.
server_url
:
self
.
_patchHttplib
()
self
.
server_url
=
'http://localhost/'
else
:
self
.
server_url
=
self
.
_server_url
print
'Testing against SLAP server %r'
%
self
.
server_url
self
.
slap
=
slapos
.
slap
.
slap
()
self
.
partition_id
=
'PARTITION_01'
...
...
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