Commit 2901d376 authored by Alain Takoudjou's avatar Alain Takoudjou

fix: Force tests in testSlapOSHypermediaSkins to be run in first position

parent d6b82608
...@@ -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,11 +56,11 @@ def do_fake_request(request_method, headers={}): ...@@ -55,11 +56,11 @@ 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 TestASlapOSBase_getRequestHeader(testSlapOSMixin):
def beforeTearDown(self): def beforeTearDown(self):
transaction.abort() transaction.abort()
def test_getRequestHeader_REQUEST_disallowed(self): def test_getRequestHeader_REQUEST_disallowed(self):
self.assertRaises( self.assertRaises(
Unauthorized, Unauthorized,
...@@ -150,7 +151,7 @@ class TestSlapOSBase_handleAcceptHeader(testSlapOSMixin): ...@@ -150,7 +151,7 @@ class TestSlapOSBase_handleAcceptHeader(testSlapOSMixin):
None None
) )
class TestSlapOSBase_getHateoasMaster(testSlapOSMixin): class TestZSlapOSBase_getHateoasMaster(testSlapOSMixin):
def _makePerson(self): def _makePerson(self):
new_id = self.generateNewId() new_id = self.generateNewId()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment