tests.unit package¶
Submodules¶
tests.unit.internal_func_negative_test module¶
Flask App REST API testing: Unit Tests
tests.unit.internal_func_positive_test module¶
Flask App REST API testing: Unit Tests
-
class
tests.unit.internal_func_positive_test.
InternalFuncPositiveTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
classmethod
setUpClass
() → None[source]¶ Hook method for setting up class fixture before running tests in the class.
-
test_debug_mode
()[source]¶ Whether debug mode is enabled.
When using flask run to start the development server, an interactive debugger will be shown for unhandled exceptions, and the server will be reloaded when code changes. The debug attribute maps to this config key. This is enabled when ENV is ‘development’ and is overridden by the FLASK_DEBUG environment variable. It may not behave as expected if set in code.
Do not enable debug mode when deploying in production.
Default: True if ENV is ‘development’, or False otherwise. :return:
-
classmethod