From d1cffc55cb5421c6c56f54124ded202a3332a676 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Tue, 18 May 2021 17:23:21 +0200 Subject: [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 --- tests/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/__init__.py b/tests/__init__.py index 18bf7cad8..cb43fc22a 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) -- cgit v1.2.3