mirror of
https://github.com/searxng/searxng.git
synced 2025-07-15 01:09:21 +02:00
Remove usage of SEARX environment variables
This commit is contained in:
parent
56000d5162
commit
4adc9920e9
3 changed files with 21 additions and 36 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue