Remove useless unittest imports
This commit is contained in:
parent
2401e21efd
commit
c6795eb626
7 changed files with 8 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
tests.appctx
|
tests.appctx
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
Tests the application context.
|
Tests the application context.
|
||||||
|
|
||||||
|
|
@ -12,8 +12,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
import unittest
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_basic_url_generation():
|
def test_basic_url_generation():
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
tests.blueprints
|
tests.blueprints
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Blueprints (and currently modules)
|
Blueprints (and currently modules)
|
||||||
|
|
||||||
|
|
@ -12,7 +12,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
import unittest
|
|
||||||
|
|
||||||
from flask._compat import text_type
|
from flask._compat import text_type
|
||||||
from werkzeug.http import parse_cache_control_header
|
from werkzeug.http import parse_cache_control_header
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
tests.reqctx
|
tests.reqctx
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
Tests the request context.
|
Tests the request context.
|
||||||
|
|
||||||
|
|
@ -12,14 +12,13 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
import unittest
|
|
||||||
try:
|
try:
|
||||||
from greenlet import greenlet
|
from greenlet import greenlet
|
||||||
except ImportError:
|
except ImportError:
|
||||||
greenlet = None
|
greenlet = None
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_teardown_on_pop():
|
def test_teardown_on_pop():
|
||||||
buffer = []
|
buffer = []
|
||||||
app = flask.Flask(__name__)
|
app = flask.Flask(__name__)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
tests.subclassing
|
tests.subclassing
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Test that certain behavior of flask can be customized by
|
Test that certain behavior of flask can be customized by
|
||||||
subclasses.
|
subclasses.
|
||||||
|
|
@ -10,7 +10,6 @@
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
import flask
|
import flask
|
||||||
import unittest
|
|
||||||
from logging import StreamHandler
|
from logging import StreamHandler
|
||||||
|
|
||||||
from flask._compat import StringIO
|
from flask._compat import StringIO
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
tests.templating
|
tests.templating
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Template functionality
|
Template functionality
|
||||||
|
|
||||||
|
|
@ -12,13 +12,10 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
import unittest
|
|
||||||
import logging
|
import logging
|
||||||
from jinja2 import TemplateNotFound
|
from jinja2 import TemplateNotFound
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_context_processing():
|
def test_context_processing():
|
||||||
app = flask.Flask(__name__)
|
app = flask.Flask(__name__)
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
tests.testing
|
tests.testing
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
Test client and more.
|
Test client and more.
|
||||||
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
import unittest
|
|
||||||
|
|
||||||
from flask._compat import text_type
|
from flask._compat import text_type
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
tests.views
|
tests.views
|
||||||
~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
Pluggable views.
|
Pluggable views.
|
||||||
|
|
||||||
|
|
@ -13,7 +13,6 @@ import pytest
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
import flask.views
|
import flask.views
|
||||||
import unittest
|
|
||||||
|
|
||||||
from werkzeug.http import parse_set_header
|
from werkzeug.http import parse_set_header
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue