tests: disable pretty error page handler for tests, with option to
disable when testing error pages, fixes #4208
This commit is contained in:
parent
2ab245bc4b
commit
f9e2cd26fe
3 changed files with 12 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue