summaryrefslogtreecommitdiff
path: root/tests/test_config/pkgs/selfscan
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_config/pkgs/selfscan')
-rw-r--r--tests/test_config/pkgs/selfscan/__init__.py3
-rw-r--r--tests/test_config/pkgs/selfscan/another.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_config/pkgs/selfscan/__init__.py b/tests/test_config/pkgs/selfscan/__init__.py
index 779ea3eed..8bc8761ca 100644
--- a/tests/test_config/pkgs/selfscan/__init__.py
+++ b/tests/test_config/pkgs/selfscan/__init__.py
@@ -1,11 +1,14 @@
from pyramid.view import view_config
+
@view_config(renderer='string')
def abc(request):
return 'root'
+
def main():
from pyramid.config import Configurator
+
c = Configurator()
c.scan()
return c
diff --git a/tests/test_config/pkgs/selfscan/another.py b/tests/test_config/pkgs/selfscan/another.py
index a30ad3297..79e0b08de 100644
--- a/tests/test_config/pkgs/selfscan/another.py
+++ b/tests/test_config/pkgs/selfscan/another.py
@@ -1,6 +1,6 @@
from pyramid.view import view_config
+
@view_config(name='two', renderer='string')
def two(request):
return 'two'
-