Remove usage of SEARX environment variables

This commit is contained in:
Alexandre FLAMENT 2022-08-27 11:41:14 +00:00
parent 56000d5162
commit 4adc9920e9
3 changed files with 21 additions and 36 deletions

View file

@ -22,11 +22,11 @@ class TestLoad(SearxTestCase):
with self.assertRaises(SearxSettingsException):
settings_loader.load_yaml(join(test_dir, '/settings/empty_settings.yml'))
def test_check_settings_yml(self):
self.assertIsNone(settings_loader.check_settings_yml('/dev/zero'))
def test_existing_filename_or_none(self):
self.assertIsNone(settings_loader.existing_filename_or_none('/dev/zero'))
bad_settings_path = join(test_dir, 'settings/syntaxerror_settings.yml')
self.assertEqual(settings_loader.check_settings_yml(bad_settings_path), bad_settings_path)
self.assertEqual(settings_loader.existing_filename_or_none(bad_settings_path), bad_settings_path)
class TestDefaultSettings(SearxTestCase):