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
08cf13d7
Commit
08cf13d7
authored
Jul 05, 2012
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix undefined SERVER_URL in main function of test
parent
b2eff605
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
slapos/tests/slap.py
slapos/tests/slap.py
+1
-1
No files found.
slapos/tests/slap.py
View file @
08cf13d7
...
@@ -45,6 +45,7 @@ class SlapMixin(unittest.TestCase):
...
@@ -45,6 +45,7 @@ class SlapMixin(unittest.TestCase):
self
.
server_url
=
'http://localhost/'
self
.
server_url
=
'http://localhost/'
else
:
else
:
self
.
server_url
=
self
.
_server_url
self
.
server_url
=
self
.
_server_url
print
'Testing against SLAP server %r'
%
self
.
server_url
def
tearDown
(
self
):
def
tearDown
(
self
):
if
self
.
_server_url
is
None
:
if
self
.
_server_url
is
None
:
...
@@ -589,7 +590,6 @@ class TestOpenOrder(SlapMixin):
...
@@ -589,7 +590,6 @@ class TestOpenOrder(SlapMixin):
self
.
assertTrue
(
requested_partition_id
,
computer_partition
.
getId
())
self
.
assertTrue
(
requested_partition_id
,
computer_partition
.
getId
())
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
'Testing against SLAP server %r'
%
SERVER_URL
print
'You can point to any SLAP server by setting TEST_SLAP_SERVER_URL '
\
print
'You can point to any SLAP server by setting TEST_SLAP_SERVER_URL '
\
'environment variable'
'environment variable'
unittest
.
main
()
unittest
.
main
()
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