tests: disable pretty error page handler for tests, with option to

disable when testing error pages, fixes #4208
This commit is contained in:
Daniel Dourvaris 2016-09-02 09:24:57 +03:00
parent 2ab245bc4b
commit f9e2cd26fe
3 changed files with 12 additions and 4 deletions

View file

@ -158,6 +158,8 @@ def load_pyramid_environment(global_config, settings):
# This has to be done before the database connection is initialized.
if settings['is_test']:
rhodecode.is_test = True
rhodecode.disable_error_handler = True
utils.initialize_test_environment(settings_merged)
# Initialize the database connection.