diff options
author | Adam Tauber <asciimoo@gmail.com> | 2016-09-22 23:51:07 +0200 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2016-09-22 23:51:07 +0200 |
commit | bee7b497a300622f5ba2b619817f5c89c29ae871 (patch) | |
tree | 525c3d85020cedd88663a4bb4a0e18c54500044b /tests | |
parent | aaf5d506e51197603922d7b9d259c0f4e498f62b (diff) | |
download | searxng-bee7b497a300622f5ba2b619817f5c89c29ae871.tar.gz searxng-bee7b497a300622f5ba2b619817f5c89c29ae871.zip |
[mod] rename "default" theme to "legacy"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/robot/test_basic.robot | 4 | ||||
-rw-r--r-- | tests/unit/test_webapp.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/robot/test_basic.robot b/tests/robot/test_basic.robot index a455eeaa0..540060fef 100644 --- a/tests/robot/test_basic.robot +++ b/tests/robot/test_basic.robot @@ -67,7 +67,7 @@ Change theme Page Should Contain about Page Should Contain preferences Go To http://localhost:11111/preferences - List Selection Should Be theme default + List Selection Should Be theme legacy Select From List theme oscar Submit Form id=search_form Location Should Be http://localhost:11111/ @@ -139,7 +139,7 @@ Block a plugin Page Should Contain about Page Should Contain preferences Go To http://localhost:11111/preferences - List Selection Should Be theme default + List Selection Should Be theme legacy Select From List theme oscar Submit Form id=search_form Location Should Be http://localhost:11111/ diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 1762d66b6..912bebc4d 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -44,7 +44,7 @@ class ViewsTestCase(SearxTestCase): webapp.Search.search = search_mock def get_current_theme_name_mock(override=None): - return 'default' + return 'legacy' webapp.get_current_theme_name = get_current_theme_name_mock @@ -58,7 +58,7 @@ class ViewsTestCase(SearxTestCase): def test_index_html(self): result = self.app.post('/', data={'q': 'test'}) self.assertIn( - '<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/default/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqa + '<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/legacy/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqa result.data ) self.assertIn( |