diff options
author | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-08-27 11:41:14 +0000 |
---|---|---|
committer | Alexandre FLAMENT <alexandre.flament@hesge.ch> | 2022-08-28 17:12:57 +0000 |
commit | 4adc9920e9114fef231fa63ae93346d01cf848bd (patch) | |
tree | 5bdefe220a926deb055deb35af25f133c60f0008 /tests | |
parent | 56000d51622f924bd0f5cba2008dccd548b9041e (diff) | |
download | searxng-4adc9920e9114fef231fa63ae93346d01cf848bd.tar.gz searxng-4adc9920e9114fef231fa63ae93346d01cf848bd.zip |
Remove usage of SEARX environment variables
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_settings_loader.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_settings_loader.py b/tests/unit/test_settings_loader.py index 13a2d4f37..732bc9156 100644 --- a/tests/unit/test_settings_loader.py +++ b/tests/unit/test_settings_loader.py @@ -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): |