diff options
| author | David Lord <davidism@gmail.com> | 2019-02-13 11:44:18 -0800 |
|---|---|---|
| committer | David Lord <davidism@gmail.com> | 2019-03-08 08:01:31 -0800 |
| commit | ab6150fa49afc61b0c5eed6d9545d03d1958e384 (patch) | |
| tree | ad5f13c9c2775ca59cc8e82ec124c4e065a65d1b /tests/test_compat.py | |
| parent | 048d707d25685e6aea675c53945ceb7619e60344 (diff) | |
| download | werkzeug-code-style.tar.gz | |
apply code stylecode-style
* reorder-python-imports
* line fixers
* black
* flake8
Diffstat (limited to 'tests/test_compat.py')
| -rw-r--r-- | tests/test_compat.py | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/tests/test_compat.py b/tests/test_compat.py index ad8e8a4d..98851ba2 100644 --- a/tests/test_compat.py +++ b/tests/test_compat.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +# flake8: noqa """ tests.compat ~~~~~~~~~~~~ @@ -8,25 +9,32 @@ :copyright: 2007 Pallets :license: BSD-3-Clause """ - -# This file shouldn't be linted: -# flake8: noqa - -import warnings - -from werkzeug.wrappers import Response from werkzeug.test import create_environ +from werkzeug.wrappers import Response def test_old_imports(): - from werkzeug.utils import Headers, MultiDict, CombinedMultiDict, \ - Headers, EnvironHeaders - from werkzeug.http import Accept, MIMEAccept, CharsetAccept, \ - LanguageAccept, ETags, HeaderSet, WWWAuthenticate, \ - Authorization + from werkzeug.utils import ( + Headers, + MultiDict, + CombinedMultiDict, + Headers, + EnvironHeaders, + ) + from werkzeug.http import ( + Accept, + MIMEAccept, + CharsetAccept, + LanguageAccept, + ETags, + HeaderSet, + WWWAuthenticate, + Authorization, + ) def test_exposed_werkzeug_mod(): import werkzeug + for key in werkzeug.__all__: getattr(werkzeug, key) |
