diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-07-27 11:22:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-27 11:22:18 +0200 |
| commit | ed0db4d61a2e0dae4953eb813604e2d8834868bb (patch) | |
| tree | 6c3e0a1bb68e4b55c40ab1b908e0c00db32280b6 /tests/unit/__init__.py | |
| parent | 24fcd7475a280e74105840b7b63fca3be4dbf397 (diff) | |
| parent | 7b40c736e6deac831eb00d8a988516ac9adfad79 (diff) | |
Merge pull request #226 from return42/hardening
[mod] hardening SearXNG instances by default (formats)
Diffstat (limited to 'tests/unit/__init__.py')
| -rw-r--r-- | tests/unit/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py index e69de29bb..8266c675a 100644 --- a/tests/unit/__init__.py +++ b/tests/unit/__init__.py @@ -0,0 +1,6 @@ +import os +from os.path import dirname, sep, abspath + +# In unit tests the user settings from unit/settings/test_settings.yml are used. +os.environ['SEARX_SETTINGS_PATH'] = abspath( + dirname(__file__) + sep + 'settings' + sep + 'test_settings.yml') |