Remove themes: update tests

This commit is contained in:
Alexandre Flament 2022-05-13 17:31:17 +02:00
parent 603e131147
commit 4263774ade

View file

@ -7,7 +7,6 @@ from searx.results import Timing
import searx.search.processors import searx.search.processors
from searx.search import Search from searx.search import Search
from searx.preferences import Preferences
from tests import SearxTestCase from tests import SearxTestCase
@ -78,15 +77,6 @@ class ViewsTestCase(SearxTestCase):
self.setattr4test(Search, 'search', search_mock) self.setattr4test(Search, 'search', search_mock)
original_preferences_get_value = Preferences.get_value
def preferences_get_value(preferences_self, user_setting_name: str):
if user_setting_name == 'theme':
return 'simple'
return original_preferences_get_value(preferences_self, user_setting_name)
self.setattr4test(Preferences, 'get_value', preferences_get_value)
self.maxDiff = None # to see full diffs self.maxDiff = None # to see full diffs
def test_index_empty(self): def test_index_empty(self):