summaryrefslogtreecommitdiff
path: root/tests/test_scripts/dummy.py
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-11-14 20:35:39 -0600
committerMichael Merickel <michael@merickel.org>2018-11-14 20:36:00 -0600
commita705f56c3ebf34f25ab567d85b7d5b421983aa4a (patch)
tree515498bb3f375807db95391b240a7df3ab247aca /tests/test_scripts/dummy.py
parent0b570220d9f442700eb97c5a5c4eca6ab03a1ee4 (diff)
downloadpyramid-a705f56c3ebf34f25ab567d85b7d5b421983aa4a.tar.gz
pyramid-a705f56c3ebf34f25ab567d85b7d5b421983aa4a.tar.bz2
pyramid-a705f56c3ebf34f25ab567d85b7d5b421983aa4a.zip
rely on webob for request.path_info and request.scheme
Diffstat (limited to 'tests/test_scripts/dummy.py')
-rw-r--r--tests/test_scripts/dummy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_scripts/dummy.py b/tests/test_scripts/dummy.py
index 8e340f645..bb3475d39 100644
--- a/tests/test_scripts/dummy.py
+++ b/tests/test_scripts/dummy.py
@@ -81,8 +81,11 @@ class DummyRoute(object):
class DummyRequest:
application_url = 'http://example.com:5432'
script_name = ''
+ path_info = '/'
- def __init__(self, environ):
+ def __init__(self, environ=None):
+ if environ is None:
+ environ = {}
self.environ = environ
self.matchdict = {}