mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Remove themes: update tests
This commit is contained in:
parent
603e131147
commit
4263774ade
1 changed files with 0 additions and 10 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue