flask/tests
David Lord 253570784c
cleaner message when CLI can't load app
When loading the app fails for the --help command, only the error
message is shown, then the help text. The full traceback is shown for
other exceptions. Also show the message when loading fails while
getting a command, instead of only "command not found". The error
message goes to stderr to match other error behavior, and is in red
with an extra newline to make it more obvious next to the help text.

Also fixes an issue with the test_apps fixture that caused an imported
app to still be importable after the test was over and the path was
reset. Now the module cache is reset as well.
2020-07-30 18:36:55 -07:00
..
static clean up secret key docs 2017-06-28 07:58:06 -07:00
templates add pre-commit config for flake8 2019-06-01 09:13:46 -04:00
test_apps deprecate passing script_info to factory 2020-04-07 15:54:36 -07:00
conftest.py cleaner message when CLI can't load app 2020-07-30 18:36:55 -07:00
test_appctx.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_basic.py change make_response to use headers.update 2020-07-23 16:53:39 -07:00
test_blueprints.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_cli.py cleaner message when CLI can't load app 2020-07-30 18:36:55 -07:00
test_config.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_converters.py apply pyupgrade 2020-04-04 12:10:00 -07:00
test_helpers.py DOC: Remove unnecessary docstrings 2020-07-26 15:47:12 +02:00
test_instance_config.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_json_tag.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_logging.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_regression.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_reqctx.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_signals.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_subclassing.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_templating.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_testing.py remove unused module docstrings 2020-04-04 12:28:08 -07:00
test_user_error_handler.py add assert message for errorhandler exception type 2020-04-16 10:49:42 -07:00
test_views.py remove unused module docstrings 2020-04-04 12:28:08 -07:00