summaryrefslogtreecommitdiff
path: root/tests/pkgs
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2019-12-26 13:27:39 -0600
committerMichael Merickel <michael@merickel.org>2019-12-27 17:58:42 -0600
commit8854637933df9e7df8940c2f62122c5e61d58219 (patch)
treef830240a1c96042b09a9c700e348531ae1e0c26c /tests/pkgs
parentc71001eb97ad6fb1520411d15f7625a4897dd332 (diff)
downloadpyramid-8854637933df9e7df8940c2f62122c5e61d58219.tar.gz
pyramid-8854637933df9e7df8940c2f62122c5e61d58219.tar.bz2
pyramid-8854637933df9e7df8940c2f62122c5e61d58219.zip
isort
Diffstat (limited to 'tests/pkgs')
-rw-r--r--tests/pkgs/conflictapp/__init__.py2
-rw-r--r--tests/pkgs/defpermbugapp/__init__.py1
-rw-r--r--tests/pkgs/eventonly/__init__.py2
-rw-r--r--tests/pkgs/exceptionviewapp/views.py4
-rw-r--r--tests/pkgs/fixtureapp/views.py3
-rw-r--r--tests/pkgs/forbiddenapp/__init__.py1
-rw-r--r--tests/pkgs/forbiddenview/__init__.py4
-rw-r--r--tests/pkgs/legacysecurityapp/__init__.py2
-rw-r--r--tests/pkgs/notfoundview/__init__.py2
-rw-r--r--tests/pkgs/permbugapp/__init__.py3
10 files changed, 15 insertions, 9 deletions
diff --git a/tests/pkgs/conflictapp/__init__.py b/tests/pkgs/conflictapp/__init__.py
index 840813994..ba3e72fc8 100644
--- a/tests/pkgs/conflictapp/__init__.py
+++ b/tests/pkgs/conflictapp/__init__.py
@@ -1,6 +1,6 @@
-from pyramid.response import Response
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
+from pyramid.response import Response
def aview(request):
diff --git a/tests/pkgs/defpermbugapp/__init__.py b/tests/pkgs/defpermbugapp/__init__.py
index af78404ae..fe8611870 100644
--- a/tests/pkgs/defpermbugapp/__init__.py
+++ b/tests/pkgs/defpermbugapp/__init__.py
@@ -1,4 +1,5 @@
from webob import Response
+
from pyramid.security import NO_PERMISSION_REQUIRED
from pyramid.view import view_config
diff --git a/tests/pkgs/eventonly/__init__.py b/tests/pkgs/eventonly/__init__.py
index c48b539a1..35d83838f 100644
--- a/tests/pkgs/eventonly/__init__.py
+++ b/tests/pkgs/eventonly/__init__.py
@@ -1,5 +1,5 @@
-from pyramid.view import view_config
from pyramid.events import subscriber
+from pyramid.view import view_config
class Yup(object):
diff --git a/tests/pkgs/exceptionviewapp/views.py b/tests/pkgs/exceptionviewapp/views.py
index ca2c4fffb..7985d0b94 100644
--- a/tests/pkgs/exceptionviewapp/views.py
+++ b/tests/pkgs/exceptionviewapp/views.py
@@ -1,7 +1,9 @@
from webob import Response
-from .models import AnException
+
from pyramid.httpexceptions import HTTPBadRequest
+from .models import AnException
+
def no(request):
return Response('no')
diff --git a/tests/pkgs/fixtureapp/views.py b/tests/pkgs/fixtureapp/views.py
index 78df81c6f..c955a220d 100644
--- a/tests/pkgs/fixtureapp/views.py
+++ b/tests/pkgs/fixtureapp/views.py
@@ -1,5 +1,6 @@
-from zope.interface import Interface
from webob import Response
+from zope.interface import Interface
+
from pyramid.httpexceptions import HTTPForbidden
diff --git a/tests/pkgs/forbiddenapp/__init__.py b/tests/pkgs/forbiddenapp/__init__.py
index 79670dd32..4ae265a96 100644
--- a/tests/pkgs/forbiddenapp/__init__.py
+++ b/tests/pkgs/forbiddenapp/__init__.py
@@ -1,4 +1,5 @@
from webob import Response
+
from pyramid.httpexceptions import HTTPForbidden
from pyramid.util import bytes_
diff --git a/tests/pkgs/forbiddenview/__init__.py b/tests/pkgs/forbiddenview/__init__.py
index 4c78d961c..405869763 100644
--- a/tests/pkgs/forbiddenview/__init__.py
+++ b/tests/pkgs/forbiddenview/__init__.py
@@ -1,7 +1,7 @@
-from pyramid.view import forbidden_view_config, view_config
-from pyramid.response import Response
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
+from pyramid.response import Response
+from pyramid.view import forbidden_view_config, view_config
@forbidden_view_config(route_name='foo')
diff --git a/tests/pkgs/legacysecurityapp/__init__.py b/tests/pkgs/legacysecurityapp/__init__.py
index 12fb6104e..abfef1cc5 100644
--- a/tests/pkgs/legacysecurityapp/__init__.py
+++ b/tests/pkgs/legacysecurityapp/__init__.py
@@ -1,5 +1,5 @@
-from pyramid.response import Response
from pyramid.authentication import RemoteUserAuthenticationPolicy
+from pyramid.response import Response
from pyramid.security import Allowed, Denied
diff --git a/tests/pkgs/notfoundview/__init__.py b/tests/pkgs/notfoundview/__init__.py
index f606ec671..0eec3192c 100644
--- a/tests/pkgs/notfoundview/__init__.py
+++ b/tests/pkgs/notfoundview/__init__.py
@@ -1,5 +1,5 @@
-from pyramid.view import notfound_view_config, view_config
from pyramid.response import Response
+from pyramid.view import notfound_view_config, view_config
@notfound_view_config(route_name='foo', append_slash=True)
diff --git a/tests/pkgs/permbugapp/__init__.py b/tests/pkgs/permbugapp/__init__.py
index 72b5d9c17..594acc8d6 100644
--- a/tests/pkgs/permbugapp/__init__.py
+++ b/tests/pkgs/permbugapp/__init__.py
@@ -1,6 +1,7 @@
from html import escape
-from pyramid.security import view_execution_permitted
+
from pyramid.response import Response
+from pyramid.security import view_execution_permitted
def x_view(request): # pragma: no cover