Skip to content
Myr

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

7 files+8 added−18 removed

modified:tests/test_appctx.py+1 added-3 removed
1# -*- coding: utf-8 -*-2"""3 tests.appctx4 ~~~~~~~~~~~~~~~~~~~~~~4 ~~~~~~~~~~~~56 Tests the application context.78 :copyright: (c) 2014 by Armin Ronacher.
2 unmodified lines
1112import pytest1314import flask15import unittest15161817def test_basic_url_generation():18 app = flask.Flask(__name__)19 app.config['SERVER_NAME'] = 'localhost'20 app.config['PREFERRED_URL_SCHEME'] = 'https'
91 unmodified lines
modified:tests/test_blueprints.py+1 added-2 removed
1# -*- coding: utf-8 -*-2"""3 tests.blueprints4 ~~~~~~~~~~~~~~~~~~~~~~~~~~4 ~~~~~~~~~~~~~~~~56 Blueprints (and currently modules)78 :copyright: (c) 2014 by Armin Ronacher.
2 unmodified lines
1112import pytest1314import flask15import unittest1516from flask._compat import text_type17from werkzeug.http import parse_cache_control_header18from jinja2 import TemplateNotFound
559 unmodified lines
modified:tests/test_reqctx.py+2 added-3 removed
1# -*- coding: utf-8 -*-2"""3 tests.reqctx4 ~~~~~~~~~~~~~~~~~~~~~~4 ~~~~~~~~~~~~56 Tests the request context.78 :copyright: (c) 2014 by Armin Ronacher.
2 unmodified lines
1112import pytest1314import flask15import unittest1516try:17 from greenlet import greenlet18except ImportError:19 greenlet = None20212222def test_teardown_on_pop():23 buffer = []24 app = flask.Flask(__name__)25 @app.teardown_request
159 unmodified lines
modified:tests/test_subclassing.py+1 added-2 removed
1# -*- coding: utf-8 -*-2"""3 tests.subclassing4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~4 ~~~~~~~~~~~~~~~~~56 Test that certain behavior of flask can be customized by7 subclasses.89 :copyright: (c) 2014 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""12import flask13import unittest13from logging import StreamHandler1415from flask._compat import StringIO16
21 unmodified lines
modified:tests/test_templating.py+1 added-4 removed
1# -*- coding: utf-8 -*-2"""3 tests.templating4 ~~~~~~~~~~~~~~~~~~~~~~~~~~4 ~~~~~~~~~~~~~~~~56 Template functionality78 :copyright: (c) 2014 by Armin Ronacher.
2 unmodified lines
1112import pytest1314import flask15import unittest15import logging16from jinja2 import TemplateNotFound1718202119def test_context_processing():20 app = flask.Flask(__name__)21 @app.context_processor22 def context_processor():
317 unmodified lines
modified:tests/test_testing.py+1 added-2 removed
1# -*- coding: utf-8 -*-2"""3 tests.testing4 ~~~~~~~~~~~~~~~~~~~~~~~4 ~~~~~~~~~~~~~56 Test client and more.78 :copyright: (c) 2014 by Armin Ronacher.
1 unmodified line
10"""11import pytest1213import flask14import unittest1415from flask._compat import text_type1617
225 unmodified lines
modified:tests/test_views.py+1 added-2 removed
1# -*- coding: utf-8 -*-2"""3 tests.views4 ~~~~~~~~~~~~~~~~~~~~~4 ~~~~~~~~~~~56 Pluggable views.78 :copyright: (c) 2014 by Armin Ronacher.
3 unmodified lines
12import pytest1314import flask15import flask.views16import unittest1617from werkzeug.http import parse_set_header1819def common_test(app):
143 unmodified lines