Browse Source

Made tests recognizable

pull/1165/head
Markus Unterwaditzer 10 years ago
parent
commit
961db8ad72
  1. 2
      tests/__init__.py
  2. 4
      tests/test_appctx.py
  3. 4
      tests/test_basic.py
  4. 4
      tests/test_blueprints.py
  5. 4
      tests/test_config.py
  6. 4
      tests/test_deprecations.py
  7. 4
      tests/test_examples.py
  8. 4
      tests/test_ext.py
  9. 4
      tests/test_helpers.py
  10. 4
      tests/test_regression.py
  11. 4
      tests/test_reqctx.py
  12. 4
      tests/test_signals.py
  13. 4
      tests/test_subclassing.py
  14. 4
      tests/test_templating.py
  15. 4
      tests/test_testing.py
  16. 4
      tests/test_views.py

2
tests/__init__.py

@ -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

4
tests/appctx.py → tests/test_appctx.py

@ -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):

4
tests/basic.py → tests/test_basic.py

@ -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

4
tests/blueprints.py → tests/test_blueprints.py

@ -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

4
tests/config.py → tests/test_config.py

@ -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

4
tests/deprecations.py → tests/test_deprecations.py

@ -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):

4
tests/examples.py → tests/test_examples.py

@ -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():

4
tests/ext.py → tests/test_ext.py

@ -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):

4
tests/helpers.py → tests/test_helpers.py

@ -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

4
tests/regression.py → tests/test_regression.py

@ -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()

4
tests/reqctx.py → tests/test_reqctx.py

@ -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):

4
tests/signals.py → tests/test_signals.py

@ -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):

4
tests/subclassing.py → tests/test_subclassing.py

@ -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

4
tests/templating.py → tests/test_templating.py

@ -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):

4
tests/testing.py → tests/test_testing.py

@ -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

4
tests/views.py → tests/test_views.py

@ -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):
Loading…
Cancel
Save