diff --git a/tests/test_appctx.py b/tests/test_appctx.py index b4d77bfc..eea4e915 100644 --- a/tests/test_appctx.py +++ b/tests/test_appctx.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ tests.appctx - ~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~ Tests the application context. @@ -12,8 +12,6 @@ import pytest import flask -import unittest - def test_basic_url_generation(): diff --git a/tests/test_blueprints.py b/tests/test_blueprints.py index 775d0472..cb47d13d 100644 --- a/tests/test_blueprints.py +++ b/tests/test_blueprints.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ tests.blueprints - ~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~ Blueprints (and currently modules) @@ -12,7 +12,6 @@ import pytest import flask -import unittest from flask._compat import text_type from werkzeug.http import parse_cache_control_header diff --git a/tests/test_reqctx.py b/tests/test_reqctx.py index 282cd04f..05e80709 100644 --- a/tests/test_reqctx.py +++ b/tests/test_reqctx.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ tests.reqctx - ~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~ Tests the request context. @@ -12,14 +12,13 @@ import pytest import flask -import unittest + try: from greenlet import greenlet except ImportError: greenlet = None - def test_teardown_on_pop(): buffer = [] app = flask.Flask(__name__) diff --git a/tests/test_subclassing.py b/tests/test_subclassing.py index 6766264e..a32f8d2e 100644 --- a/tests/test_subclassing.py +++ b/tests/test_subclassing.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ tests.subclassing - ~~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~ Test that certain behavior of flask can be customized by subclasses. @@ -10,7 +10,6 @@ :license: BSD, see LICENSE for more details. """ import flask -import unittest from logging import StreamHandler from flask._compat import StringIO diff --git a/tests/test_templating.py b/tests/test_templating.py index 6d8dd61d..5aaf9081 100644 --- a/tests/test_templating.py +++ b/tests/test_templating.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ tests.templating - ~~~~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~ Template functionality @@ -12,13 +12,10 @@ import pytest import flask -import unittest import logging from jinja2 import TemplateNotFound - - def test_context_processing(): app = flask.Flask(__name__) @app.context_processor diff --git a/tests/test_testing.py b/tests/test_testing.py index d0e8f9f7..81512bce 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ tests.testing - ~~~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~ Test client and more. @@ -11,7 +11,6 @@ import pytest import flask -import unittest from flask._compat import text_type diff --git a/tests/test_views.py b/tests/test_views.py index e08a2991..1c164b10 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ tests.views - ~~~~~~~~~~~~~~~~~~~~~ + ~~~~~~~~~~~ Pluggable views. @@ -13,7 +13,6 @@ import pytest import flask import flask.views -import unittest from werkzeug.http import parse_set_header