Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
Update internal_func_positive_test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ikostan committed Oct 4, 2019
1 parent 9726d43 commit 1b527ae
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/unit/internal_func_positive_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,29 @@ def setUpClass(cls) -> None:
"password": "qxf2",
"perm": "non_admin"}

def test_debug_mode(self):
"""
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:
"""

allure.dynamic.title("API flags validation")
allure.dynamic.severity(allure.severity_level.CRITICAL)

with allure.step("Verify DEBUG flag"):
self.assertFalse(app.config['DEBUG'])

def test_check_auth_admin(self):

with allure.step("Verify check_auth flag using admin user"):
Expand Down

0 comments on commit 1b527ae

Please sign in to comment.