From 4adc9920e9114fef231fa63ae93346d01cf848bd Mon Sep 17 00:00:00 2001 From: Alexandre FLAMENT Date: Sat, 27 Aug 2022 11:41:14 +0000 Subject: Remove usage of SEARX environment variables --- tests/unit/test_settings_loader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3-54-g00ecf