diff options
| author | Michael Merickel <michael@merickel.org> | 2018-10-15 01:55:54 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-10-15 09:24:07 -0500 |
| commit | 0c29cf2df41600d3906d521c72991c7686018b71 (patch) | |
| tree | ff907f90ec9467e12874c9b2c961549d0e7caf74 /tests/pkgs/includeapp1 | |
| parent | 851c368e3c158e264358de10446f5b5de240e534 (diff) | |
| download | pyramid-0c29cf2df41600d3906d521c72991c7686018b71.tar.gz pyramid-0c29cf2df41600d3906d521c72991c7686018b71.tar.bz2 pyramid-0c29cf2df41600d3906d521c72991c7686018b71.zip | |
format source using black
Diffstat (limited to 'tests/pkgs/includeapp1')
| -rw-r--r-- | tests/pkgs/includeapp1/root.py | 3 | ||||
| -rw-r--r-- | tests/pkgs/includeapp1/three.py | 7 | ||||
| -rw-r--r-- | tests/pkgs/includeapp1/two.py | 4 |
3 files changed, 9 insertions, 5 deletions
diff --git a/tests/pkgs/includeapp1/root.py b/tests/pkgs/includeapp1/root.py index 986356d81..369ab9f38 100644 --- a/tests/pkgs/includeapp1/root.py +++ b/tests/pkgs/includeapp1/root.py @@ -1,10 +1,11 @@ from pyramid.response import Response + def aview(request): return Response('root') + def configure(config): config.add_view(aview) config.include('tests.pkgs.includeapp1.two.configure') config.commit() - diff --git a/tests/pkgs/includeapp1/three.py b/tests/pkgs/includeapp1/three.py index 973f91d99..b8d881244 100644 --- a/tests/pkgs/includeapp1/three.py +++ b/tests/pkgs/includeapp1/three.py @@ -1,10 +1,11 @@ from pyramid.response import Response + def aview(request): return Response('three') + def configure(config): config.add_view(aview, name='three') - config.include('tests.pkgs.includeapp1.two.configure') # should not cycle - config.add_view(aview) # will be overridden by root when resolved - + config.include('tests.pkgs.includeapp1.two.configure') # should not cycle + config.add_view(aview) # will be overridden by root when resolved diff --git a/tests/pkgs/includeapp1/two.py b/tests/pkgs/includeapp1/two.py index 6b8bb5539..727161c8e 100644 --- a/tests/pkgs/includeapp1/two.py +++ b/tests/pkgs/includeapp1/two.py @@ -1,9 +1,11 @@ from pyramid.response import Response + def aview(request): return Response('two') + def configure(config): config.add_view(aview, name='two') config.include('tests.pkgs.includeapp1.three.configure') - config.add_view(aview) # will be overridden by root when resolved + config.add_view(aview) # will be overridden by root when resolved |
