diff options
Diffstat (limited to 'tests/pkgs/viewdecoratorapp')
| -rw-r--r-- | tests/pkgs/viewdecoratorapp/__init__.py | 1 | ||||
| -rw-r--r-- | tests/pkgs/viewdecoratorapp/views/views.py | 11 |
2 files changed, 5 insertions, 7 deletions
diff --git a/tests/pkgs/viewdecoratorapp/__init__.py b/tests/pkgs/viewdecoratorapp/__init__.py index 099bd29d5..99b7ea9c7 100644 --- a/tests/pkgs/viewdecoratorapp/__init__.py +++ b/tests/pkgs/viewdecoratorapp/__init__.py @@ -1,3 +1,2 @@ def includeme(config): config.scan('tests.pkgs.viewdecoratorapp') - diff --git a/tests/pkgs/viewdecoratorapp/views/views.py b/tests/pkgs/viewdecoratorapp/views/views.py index 18ec78847..6879acd2b 100644 --- a/tests/pkgs/viewdecoratorapp/views/views.py +++ b/tests/pkgs/viewdecoratorapp/views/views.py @@ -1,12 +1,11 @@ from pyramid.view import view_config + @view_config(renderer='json', name='first') def first(request): - return {'result':'OK1'} + return {'result': 'OK1'} -@view_config( - renderer='json', - name='second') -def second(request): - return {'result':'OK2'} +@view_config(renderer='json', name='second') +def second(request): + return {'result': 'OK2'} |
