Remove useless unittest imports
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 2401e21 · Browse files · 7 files·+8 added−18 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+8 added−18 removed
- tests:+8 added−18 removed
Provenance
- Commit
c6795eb- Tree
e3a522d- Author
Markus Unterwaditzer <markus@unterwaditzer.net>- Committer
Markus Unterwaditzer <markus@unterwaditzer.net>- Parent
2401e21
7 files changed+8 added−18 removed
modified:tests/test_appctx.py+1 added-3 removed
1 # -*- coding: utf-8 -*-2 """3 tests.appctx4- ~~~~~~~~~~~~~~~~~~~~~~4+ ~~~~~~~~~~~~5 6 Tests the application context.7 8 :copyright: (c) 2014 by Armin Ronacher.2 unmodified lines11 12 import pytest13 14 import flask15-import unittest15 16 18-17 def test_basic_url_generation():18 app = flask.Flask(__name__)19 app.config['SERVER_NAME'] = 'localhost'20 app.config['PREFERRED_URL_SCHEME'] = 'https'91 unmodified linesmodified:tests/test_blueprints.py+1 added-2 removed
1 # -*- coding: utf-8 -*-2 """3 tests.blueprints4- ~~~~~~~~~~~~~~~~~~~~~~~~~~4+ ~~~~~~~~~~~~~~~~5 6 Blueprints (and currently modules)7 8 :copyright: (c) 2014 by Armin Ronacher.2 unmodified lines11 12 import pytest13 14 import flask15-import unittest15 16 from flask._compat import text_type17 from werkzeug.http import parse_cache_control_header18 from jinja2 import TemplateNotFound559 unmodified linesmodified:tests/test_reqctx.py+2 added-3 removed
1 # -*- coding: utf-8 -*-2 """3 tests.reqctx4- ~~~~~~~~~~~~~~~~~~~~~~4+ ~~~~~~~~~~~~5 6 Tests the request context.7 8 :copyright: (c) 2014 by Armin Ronacher.2 unmodified lines11 12 import pytest13 14 import flask15-import unittest15+16 try:17 from greenlet import greenlet18 except ImportError:19 greenlet = None20 21 22-22 def test_teardown_on_pop():23 buffer = []24 app = flask.Flask(__name__)25 @app.teardown_request159 unmodified linesmodified:tests/test_subclassing.py+1 added-2 removed
1 # -*- coding: utf-8 -*-2 """3 tests.subclassing4- ~~~~~~~~~~~~~~~~~~~~~~~~~~~4+ ~~~~~~~~~~~~~~~~~5 6 Test that certain behavior of flask can be customized by7 subclasses.8 9 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11 """12 import flask13-import unittest13 from logging import StreamHandler14 15 from flask._compat import StringIO16 21 unmodified linesmodified:tests/test_templating.py+1 added-4 removed
1 # -*- coding: utf-8 -*-2 """3 tests.templating4- ~~~~~~~~~~~~~~~~~~~~~~~~~~4+ ~~~~~~~~~~~~~~~~5 6 Template functionality7 8 :copyright: (c) 2014 by Armin Ronacher.2 unmodified lines11 12 import pytest13 14 import flask15-import unittest15 import logging16 from jinja2 import TemplateNotFound17 18 20-21-19 def test_context_processing():20 app = flask.Flask(__name__)21 @app.context_processor22 def context_processor():317 unmodified linesmodified:tests/test_testing.py+1 added-2 removed
1 # -*- coding: utf-8 -*-2 """3 tests.testing4- ~~~~~~~~~~~~~~~~~~~~~~~4+ ~~~~~~~~~~~~~5 6 Test client and more.7 8 :copyright: (c) 2014 by Armin Ronacher.1 unmodified line10 """11 import pytest12 13 import flask14-import unittest14 15 from flask._compat import text_type16 17 225 unmodified linesmodified:tests/test_views.py+1 added-2 removed
1 # -*- coding: utf-8 -*-2 """3 tests.views4- ~~~~~~~~~~~~~~~~~~~~~4+ ~~~~~~~~~~~5 6 Pluggable views.7 8 :copyright: (c) 2014 by Armin Ronacher.3 unmodified lines12 import pytest13 14 import flask15 import flask.views16-import unittest16 17 from werkzeug.http import parse_set_header18 19 def common_test(app):143 unmodified lines