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
Boxiang Sun
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):
raise
ValueError
(
'Precondition failed: %s exists in custom'
%
script_id
)
createZODBPythonScript
(
self
.
portal
.
portal_skins
.
custom
,
script_id
,
params_string
,
code_string
)
transaction
.
commit
()
try
:
result
=
f
(
self
,
*
args
,
**
kw
)
finally
:
...
...
@@ -55,7 +56,7 @@ def do_fake_request(request_method, headers={}):
env
.
update
(
headers
)
return
HTTPRequest
(
StringIO
.
StringIO
(),
env
,
HTTPResponse
())
class
TestSlapOSBase_getRequestHeader
(
testSlapOSMixin
):
class
Test
A
SlapOSBase_getRequestHeader
(
testSlapOSMixin
):
def
beforeTearDown
(
self
):
transaction
.
abort
()
...
...
@@ -150,7 +151,7 @@ class TestSlapOSBase_handleAcceptHeader(testSlapOSMixin):
None
)
class
TestSlapOSBase_getHateoasMaster
(
testSlapOSMixin
):
class
Test
Z
SlapOSBase_getHateoasMaster
(
testSlapOSMixin
):
def
_makePerson
(
self
):
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