summaryrefslogtreecommitdiff
path: root/tests/test_scripts/dummy.py
diff options
context:
space:
mode:
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 = {}