summaryrefslogtreecommitdiff
path: root/tests/pkgs/notfoundview
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2018-10-15 01:55:54 -0500
committerMichael Merickel <michael@merickel.org>2018-10-15 09:24:07 -0500
commit0c29cf2df41600d3906d521c72991c7686018b71 (patch)
treeff907f90ec9467e12874c9b2c961549d0e7caf74 /tests/pkgs/notfoundview
parent851c368e3c158e264358de10446f5b5de240e534 (diff)
downloadpyramid-0c29cf2df41600d3906d521c72991c7686018b71.tar.gz
pyramid-0c29cf2df41600d3906d521c72991c7686018b71.tar.bz2
pyramid-0c29cf2df41600d3906d521c72991c7686018b71.zip
format source using black
Diffstat (limited to 'tests/pkgs/notfoundview')
-rw-r--r--tests/pkgs/notfoundview/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/pkgs/notfoundview/__init__.py b/tests/pkgs/notfoundview/__init__.py
index 8ba3ff9ed..f606ec671 100644
--- a/tests/pkgs/notfoundview/__init__.py
+++ b/tests/pkgs/notfoundview/__init__.py
@@ -1,30 +1,35 @@
from pyramid.view import notfound_view_config, view_config
from pyramid.response import Response
+
@notfound_view_config(route_name='foo', append_slash=True)
-def foo_notfound(request): # pragma: no cover
+def foo_notfound(request): # pragma: no cover
return Response('foo_notfound')
+
@notfound_view_config(route_name='baz')
def baz_notfound(request):
return Response('baz_notfound')
+
@notfound_view_config(append_slash=True)
def notfound(request):
return Response('generic_notfound')
+
@view_config(route_name='bar')
def bar(request):
return Response('OK bar')
+
@view_config(route_name='foo2')
def foo2(request):
return Response('OK foo2')
+
def includeme(config):
config.add_route('foo', '/foo')
config.add_route('foo2', '/foo/')
config.add_route('bar', '/bar/')
config.add_route('baz', '/baz')
config.scan('tests.pkgs.notfoundview')
-