Made tests recognizable

This commit is contained in:
Markus Unterwaditzer 2014-08-31 21:54:45 +02:00
parent 3550b26071
commit 961db8ad72
16 changed files with 31 additions and 31 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite tests
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
Tests Flask itself. The majority of Flask is already tested Tests Flask itself. The majority of Flask is already tested

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.appctx tests.appctx
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
Tests the application context. Tests the application context.
@ -11,7 +11,7 @@
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
class AppContextTestCase(FlaskTestCase): class AppContextTestCase(FlaskTestCase):

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.basic tests.basic
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
The basic functionality. The basic functionality.
@ -17,7 +17,7 @@ import pickle
import unittest import unittest
from datetime import datetime from datetime import datetime
from threading import Thread from threading import Thread
from flask.testsuite import FlaskTestCase, emits_module_deprecation_warning from tests import FlaskTestCase, emits_module_deprecation_warning
from flask._compat import text_type from flask._compat import text_type
from werkzeug.exceptions import BadRequest, NotFound, Forbidden from werkzeug.exceptions import BadRequest, NotFound, Forbidden
from werkzeug.http import parse_date from werkzeug.http import parse_date

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.blueprints tests.blueprints
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Blueprints (and currently modules) Blueprints (and currently modules)
@ -11,7 +11,7 @@
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
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
from jinja2 import TemplateNotFound from jinja2 import TemplateNotFound

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.config tests.config
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
Configuration and instances. Configuration and instances.
@ -15,7 +15,7 @@ import flask
import pkgutil import pkgutil
import unittest import unittest
from contextlib import contextmanager from contextlib import contextmanager
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
from flask._compat import PY2 from flask._compat import PY2

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.deprecations tests.deprecations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests deprecation support. Tests deprecation support.
@ -11,7 +11,7 @@
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase, catch_warnings from tests import FlaskTestCase, catch_warnings
class DeprecationsTestCase(FlaskTestCase): class DeprecationsTestCase(FlaskTestCase):

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.examples tests.examples
~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
Tests the examples. Tests the examples.
@ -10,7 +10,7 @@
""" """
import os import os
import unittest import unittest
from flask.testsuite import add_to_path from tests import add_to_path
def setup_path(): def setup_path():

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.ext tests.ext
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
Tests the extension import thing. Tests the extension import thing.
@ -15,7 +15,7 @@ try:
from imp import reload as reload_module from imp import reload as reload_module
except ImportError: except ImportError:
reload_module = reload reload_module = reload
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
from flask._compat import PY2 from flask._compat import PY2
class ExtImportHookTestCase(FlaskTestCase): class ExtImportHookTestCase(FlaskTestCase):

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.helpers tests.helpers
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
Various helpers. Various helpers.
@ -13,7 +13,7 @@ import os
import flask import flask
import unittest import unittest
from logging import StreamHandler from logging import StreamHandler
from flask.testsuite import FlaskTestCase, catch_warnings, catch_stderr from tests import FlaskTestCase, catch_warnings, catch_stderr
from werkzeug.http import parse_cache_control_header, parse_options_header from werkzeug.http import parse_cache_control_header, parse_options_header
from flask._compat import StringIO, text_type from flask._compat import StringIO, text_type

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.regression tests.regression
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Tests regressions. Tests regressions.
@ -16,7 +16,7 @@ import flask
import threading import threading
import unittest import unittest
from werkzeug.exceptions import NotFound from werkzeug.exceptions import NotFound
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
_gc_lock = threading.Lock() _gc_lock = threading.Lock()

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.reqctx tests.reqctx
~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
Tests the request context. Tests the request context.
@ -15,7 +15,7 @@ try:
from greenlet import greenlet from greenlet import greenlet
except ImportError: except ImportError:
greenlet = None greenlet = None
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
class RequestContextTestCase(FlaskTestCase): class RequestContextTestCase(FlaskTestCase):

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.signals tests.signals
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
Signalling. Signalling.
@ -11,7 +11,7 @@
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
class SignalsTestCase(FlaskTestCase): class SignalsTestCase(FlaskTestCase):

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.subclassing tests.subclassing
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test that certain behavior of flask can be customized by Test that certain behavior of flask can be customized by
@ -12,7 +12,7 @@
import flask import flask
import unittest import unittest
from logging import StreamHandler from logging import StreamHandler
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
from flask._compat import StringIO from flask._compat import StringIO

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.templating tests.templating
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
Template functionality Template functionality
@ -14,7 +14,7 @@ import unittest
import logging import logging
from jinja2 import TemplateNotFound from jinja2 import TemplateNotFound
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
class TemplatingTestCase(FlaskTestCase): class TemplatingTestCase(FlaskTestCase):

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.testing tests.testing
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~
Test client and more. Test client and more.
@ -11,7 +11,7 @@
import flask import flask
import unittest import unittest
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
from flask._compat import text_type from flask._compat import text_type

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
flask.testsuite.views tests.views
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
Pluggable views. Pluggable views.
@ -12,7 +12,7 @@
import flask import flask
import flask.views import flask.views
import unittest import unittest
from flask.testsuite import FlaskTestCase from tests import FlaskTestCase
from werkzeug.http import parse_set_header from werkzeug.http import parse_set_header
class ViewTestCase(FlaskTestCase): class ViewTestCase(FlaskTestCase):