summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-05-18 17:23:21 +0200
committerAlexandre Flament <alex@al-f.net>2021-05-18 17:23:21 +0200
commitd1cffc55cb5421c6c56f54124ded202a3332a676 (patch)
tree74e831edd53602aecfea89e42f3544b89dc465fb /tests
parentd255e5637b45a05d7a3b01d261affdcfc120b653 (diff)
[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
Diffstat (limited to 'tests')
-rw-r--r--tests/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index 18bf7cad..cb43fc22 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,2 +1,5 @@
import os
+
os.environ['SEARX_DEBUG'] = '1'
+os.environ['SEARX_DISABLE_ETC_SETTINGS'] = '1'
+os.environ.pop('SEARX_SETTINGS_PATH', None)