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
Labels
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
2901d376
Commit
2901d376
authored
Sep 29, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Force tests in testSlapOSHypermediaSkins to be run in first position
parent
d6b82608
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
master/bt5/slapos_hypermedia/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaSkins.py
.../portal_components/test.erp5.testSlapOSHypermediaSkins.py
+4
-3
No files found.
master/bt5/slapos_hypermedia/TestTemplateItem/portal_components/test.erp5.testSlapOSHypermediaSkins.py
View file @
2901d376
...
@@ -26,6 +26,7 @@ def simulate(script_id, params_string, code_string):
...
@@ -26,6 +26,7 @@ def simulate(script_id, params_string, code_string):
raise
ValueError
(
'Precondition failed: %s exists in custom'
%
script_id
)
raise
ValueError
(
'Precondition failed: %s exists in custom'
%
script_id
)
createZODBPythonScript
(
self
.
portal
.
portal_skins
.
custom
,
createZODBPythonScript
(
self
.
portal
.
portal_skins
.
custom
,
script_id
,
params_string
,
code_string
)
script_id
,
params_string
,
code_string
)
transaction
.
commit
()
try
:
try
:
result
=
f
(
self
,
*
args
,
**
kw
)
result
=
f
(
self
,
*
args
,
**
kw
)
finally
:
finally
:
...
@@ -55,7 +56,7 @@ def do_fake_request(request_method, headers={}):
...
@@ -55,7 +56,7 @@ def do_fake_request(request_method, headers={}):
env
.
update
(
headers
)
env
.
update
(
headers
)
return
HTTPRequest
(
StringIO
.
StringIO
(),
env
,
HTTPResponse
())
return
HTTPRequest
(
StringIO
.
StringIO
(),
env
,
HTTPResponse
())
class
TestSlapOSBase_getRequestHeader
(
testSlapOSMixin
):
class
Test
A
SlapOSBase_getRequestHeader
(
testSlapOSMixin
):
def
beforeTearDown
(
self
):
def
beforeTearDown
(
self
):
transaction
.
abort
()
transaction
.
abort
()
...
@@ -150,7 +151,7 @@ class TestSlapOSBase_handleAcceptHeader(testSlapOSMixin):
...
@@ -150,7 +151,7 @@ class TestSlapOSBase_handleAcceptHeader(testSlapOSMixin):
None
None
)
)
class
TestSlapOSBase_getHateoasMaster
(
testSlapOSMixin
):
class
Test
Z
SlapOSBase_getHateoasMaster
(
testSlapOSMixin
):
def
_makePerson
(
self
):
def
_makePerson
(
self
):
new_id
=
self
.
generateNewId
()
new_id
=
self
.
generateNewId
()
...
...
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