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_url.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_url.py')
| -rw-r--r-- | tests/test_url.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/test_url.py b/tests/test_url.py index 0eacd9c20..0b67f1acf 100644 --- a/tests/test_url.py +++ b/tests/test_url.py @@ -31,9 +31,10 @@ class TestURLMethodsMixin(unittest.TestCase): return request def _registerResourceURL(self, reg): - from pyramid.interfaces import IResourceURL from zope.interface import Interface + from pyramid.interfaces import IResourceURL + class DummyResourceURL: physical_path = '/context/' virtual_path = '/context/' @@ -684,9 +685,10 @@ class TestURLMethodsMixin(unittest.TestCase): ) def test_current_route_url_with_request_query(self): - from pyramid.interfaces import IRoutesMapper from webob.multidict import GetDict + from pyramid.interfaces import IRoutesMapper + request = self._makeOne() request.GET = GetDict([('q', '123')], {}) route = DummyRoute('/1/2/3') @@ -698,9 +700,10 @@ class TestURLMethodsMixin(unittest.TestCase): self.assertEqual(result, 'http://example.com:5432/1/2/3?q=123') def test_current_route_url_with_request_query_duplicate_entries(self): - from pyramid.interfaces import IRoutesMapper from webob.multidict import GetDict + from pyramid.interfaces import IRoutesMapper + request = self._makeOne() request.GET = GetDict( [('q', '123'), ('b', '2'), ('b', '2'), ('q', '456')], {} @@ -716,9 +719,10 @@ class TestURLMethodsMixin(unittest.TestCase): ) def test_current_route_url_with_query_override(self): - from pyramid.interfaces import IRoutesMapper from webob.multidict import GetDict + from pyramid.interfaces import IRoutesMapper + request = self._makeOne() request.GET = GetDict([('q', '123')], {}) route = DummyRoute('/1/2/3') @@ -834,8 +838,8 @@ class TestURLMethodsMixin(unittest.TestCase): self.assertEqual(info.args, ('tests:static/foo.css', request, {})) def test_static_url_abspath_integration_with_staticurlinfo(self): - from pyramid.interfaces import IStaticURLInfo from pyramid.config.views import StaticURLInfo + from pyramid.interfaces import IStaticURLInfo info = StaticURLInfo() here = os.path.abspath(os.path.dirname(__file__)) @@ -850,8 +854,8 @@ class TestURLMethodsMixin(unittest.TestCase): ) def test_static_url_noscheme_uses_scheme_from_request(self): - from pyramid.interfaces import IStaticURLInfo from pyramid.config.views import StaticURLInfo + from pyramid.interfaces import IStaticURLInfo info = StaticURLInfo() here = os.path.abspath(os.path.dirname(__file__)) |
