diff options
| author | Bert JW Regeer <bertjw@regeer.org> | 2020-07-12 16:52:48 -0700 |
|---|---|---|
| committer | Bert JW Regeer <bertjw@regeer.org> | 2020-07-12 16:52:48 -0700 |
| commit | a920c2530c130688c5d01ed999a43ccf0cb012fa (patch) | |
| tree | 43ab0c4b6db6c05418340e9e18f188e09a02f9ff /tests/test_testing.py | |
| parent | 4481cfeef8b2fd90a485f2f871e9689750b48220 (diff) | |
| download | pyramid-a920c2530c130688c5d01ed999a43ccf0cb012fa.tar.gz pyramid-a920c2530c130688c5d01ed999a43ccf0cb012fa.tar.bz2 pyramid-a920c2530c130688c5d01ed999a43ccf0cb012fa.zip | |
Run isort 5.x across code base
Diffstat (limited to 'tests/test_testing.py')
| -rw-r--r-- | tests/test_testing.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_testing.py b/tests/test_testing.py index e630eb00b..74c0ae639 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -134,8 +134,8 @@ class TestDummyRequest(unittest.TestCase): self.assertEqual(request.environ['PATH_INFO'], '/foo') def test_defaults(self): - from pyramid.threadlocal import get_current_registry from pyramid.testing import DummySession + from pyramid.threadlocal import get_current_registry request = self._makeOne() self.assertEqual(request.method, 'GET') @@ -214,8 +214,8 @@ class TestDummyRequest(unittest.TestCase): def test_registry_is_config_registry_when_setup_is_called_after_ctor(self): # see https://github.com/Pylons/pyramid/issues/165 - from pyramid.registry import Registry from pyramid.config import Configurator + from pyramid.registry import Registry request = self._makeOne() try: @@ -233,8 +233,8 @@ class TestDummyRequest(unittest.TestCase): def test_del_registry(self): # see https://github.com/Pylons/pyramid/issues/165 - from pyramid.registry import Registry from pyramid.config import Configurator + from pyramid.registry import Registry request = self._makeOne() request.registry = 'abc' @@ -249,8 +249,8 @@ class TestDummyRequest(unittest.TestCase): config.end() def test_response_with_responsefactory(self): - from pyramid.registry import Registry from pyramid.interfaces import IResponseFactory + from pyramid.registry import Registry registry = Registry('this_test') @@ -351,9 +351,8 @@ class Test_setUp(unittest.TestCase): self.assertEqual(result, hook) def test_it_defaults(self): - from pyramid.threadlocal import manager - from pyramid.threadlocal import get_current_registry from pyramid.registry import Registry + from pyramid.threadlocal import get_current_registry, manager old = True manager.push(old) @@ -597,6 +596,7 @@ class TestDummySession(unittest.TestCase): ) # see https://github.com/Pylons/pyramid/issues/3237 def test_instance_conforms(self): from zope.interface.verify import verifyObject + from pyramid.interfaces import ISession session = self._makeOne() |
