diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/__init__.py | 5 | ||||
| -rw-r--r-- | tests/robot/__main__.py | 9 |
2 files changed, 0 insertions, 14 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index e68d72feb..55a002196 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -5,13 +5,8 @@ import pathlib import os import aiounittest -# Before import from the searx package, we need to set up the (debug) -# environment. The import of the searx package initialize the searx.settings -# and this in turn takes the defaults from the environment! os.environ.pop('SEARXNG_SETTINGS_PATH', None) -os.environ['SEARXNG_DEBUG'] = '1' -os.environ['SEARXNG_DEBUG_LOG_LEVEL'] = 'WARNING' os.environ['SEARXNG_DISABLE_ETC_SETTINGS'] = '1' diff --git a/tests/robot/__main__.py b/tests/robot/__main__.py index 0b438745e..a18dd9e26 100644 --- a/tests/robot/__main__.py +++ b/tests/robot/__main__.py @@ -27,15 +27,6 @@ class SearxRobotLayer: webapp = str(tests_path.parent / 'searx' / 'webapp.py') exe = 'python' - # The Flask app is started by Flask.run(...), don't enable Flask's debug - # mode, the debugger from Flask will cause wired process model, where - # the server never dies. Further read: - # - # - debug mode: https://flask.palletsprojects.com/quickstart/#debug-mode - # - Flask.run(..): https://flask.palletsprojects.com/api/#flask.Flask.run - - os.environ['SEARXNG_DEBUG'] = '0' - # set robot settings path os.environ['SEARXNG_SETTINGS_PATH'] = str(tests_path / 'robot' / 'settings_robot.yml') |