summaryrefslogtreecommitdiff
path: root/tests/pkgs/wsgiapp2app
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pkgs/wsgiapp2app')
-rw-r--r--tests/pkgs/wsgiapp2app/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/pkgs/wsgiapp2app/__init__.py b/tests/pkgs/wsgiapp2app/__init__.py
index e2024198e..f7452f52c 100644
--- a/tests/pkgs/wsgiapp2app/__init__.py
+++ b/tests/pkgs/wsgiapp2app/__init__.py
@@ -1,6 +1,7 @@
from pyramid.view import view_config
from pyramid.wsgi import wsgiapp2
+
@view_config(name='hello', renderer='string')
@wsgiapp2
def hello(environ, start_response):
@@ -10,8 +11,10 @@ def hello(environ, start_response):
start_response('200 OK', response_headers)
return [b'Hello!']
+
def main():
from pyramid.config import Configurator
+
c = Configurator()
c.scan()
return c