summaryrefslogtreecommitdiff
path: root/tests/test_integration.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_integration.py')
-rw-r--r--tests/test_integration.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_integration.py b/tests/test_integration.py
index 638ddb2c5..f671b7c0b 100644
--- a/tests/test_integration.py
+++ b/tests/test_integration.py
@@ -34,8 +34,8 @@ def wsgiapptest(environ, start_response):
class WGSIAppPlusViewConfigTests(unittest.TestCase):
def test_it(self):
- from venusian import ATTACH_ATTR
import types
+ from venusian import ATTACH_ATTR
self.assertTrue(getattr(wsgiapptest, ATTACH_ATTR))
self.assertIsInstance(wsgiapptest, types.FunctionType)
@@ -45,10 +45,9 @@ class WGSIAppPlusViewConfigTests(unittest.TestCase):
self.assertEqual(result, '123')
def test_scanned(self):
- from pyramid.interfaces import IRequest
- from pyramid.interfaces import IView
- from pyramid.interfaces import IViewClassifier
from pyramid.config import Configurator
+ from pyramid.interfaces import IRequest, IView, IViewClassifier
+
from . import test_integration
config = Configurator()
@@ -281,9 +280,10 @@ class TestStaticAppNoSubpath(unittest.TestCase):
staticapp = static_view(os.path.join(here, 'fixtures'), use_subpath=False)
def _makeRequest(self, extra):
- from pyramid.request import Request
from io import BytesIO
+ from pyramid.request import Request
+
kw = {
'PATH_INFO': '',
'SCRIPT_NAME': '',