forked from orbit-oss/flask
Made tests recognizable
This commit is contained in:
parent
3550b26071
commit
961db8ad72
16 changed files with 31 additions and 31 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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):
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -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):
|
||||||
|
|
@ -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():
|
||||||
|
|
@ -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):
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -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()
|
||||||
|
|
@ -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):
|
||||||
|
|
@ -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):
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -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):
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -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…
Add table
Add a link
Reference in a new issue