Commit c2465b0b authored by Stefan H. Holek's avatar Stefan H. Holek

Apply Philipp's fix to Testing.makerequest as well.

parent 01b6f3b2
...@@ -36,4 +36,10 @@ def makerequest(app, stdout=stdout): ...@@ -36,4 +36,10 @@ def makerequest(app, stdout=stdout):
environ['SERVER_PORT']='80' environ['SERVER_PORT']='80'
environ['REQUEST_METHOD'] = 'GET' environ['REQUEST_METHOD'] = 'GET'
req = HTTPRequest(stdin, environ, resp) req = HTTPRequest(stdin, environ, resp)
# set Zope3-style default skin so that the request is usable for
# Zope3-style view look-ups
from zope.app.publication.browser import setDefaultSkin
setDefaultSkin(req)
return app.__of__(RequestContainer(REQUEST = req)) return app.__of__(RequestContainer(REQUEST = req))
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