Retoor software development Projects Research SearchXNG
Register Sign In

6 lines
134 B
Python
Raw Normal View History

Force admins to set secret_key if debug mode is disabled This commit also enables debug mode for unit tests.
2020-10-09 15:49:48 +02:00
import os
[fix] unit test: don't load /etc/searx/settings.yml Add a new environment variable SEARX_DISABLE_ETC_SETTINGS to disable loading of /etc/searx/settings.yml unit tests: * set SEARX_DISABLE_ETC_SETTINGS to 1 * remove SEARX_SETTINGS_PATH if it exists
2021-05-18 17:23:21 +02:00
Force admins to set secret_key if debug mode is disabled This commit also enables debug mode for unit tests.
2020-10-09 15:49:48 +02:00
os.environ['SEARX_DEBUG'] = '1'
[fix] unit test: don't load /etc/searx/settings.yml Add a new environment variable SEARX_DISABLE_ETC_SETTINGS to disable loading of /etc/searx/settings.yml unit tests: * set SEARX_DISABLE_ETC_SETTINGS to 1 * remove SEARX_SETTINGS_PATH if it exists
2021-05-18 17:23:21 +02:00
os.environ['SEARX_DISABLE_ETC_SETTINGS'] = '1'
os.environ.pop('SEARX_SETTINGS_PATH', None)
Reference in New Issue Copy Permalink
065b4dab56
BranchesTags
No results found.
searxng/tests/__init__.py
Response time: 80ms
Mail Licenses API