summaryrefslogtreecommitdiff
path: root/searx/tests
diff options
context:
space:
mode:
authordalf <alex@al-f.net>2014-10-01 22:46:31 +0200
committerdalf <alex@al-f.net>2014-10-01 22:46:31 +0200
commit728fc611da126ddb20cb16ccaa214a1f6d8bcdbd (patch)
tree2444213051fe8a5a358d0729bac5458ee1981e07 /searx/tests
parent829c75897082b74b5301af6d6a27dc0cf9f5e7d6 (diff)
[fix] infoboxes and answers : pass all tests
Diffstat (limited to 'searx/tests')
-rw-r--r--searx/tests/test_webapp.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/searx/tests/test_webapp.py b/searx/tests/test_webapp.py
index 9d1722eeb..9cf586180 100644
--- a/searx/tests/test_webapp.py
+++ b/searx/tests/test_webapp.py
@@ -43,6 +43,8 @@ class ViewsTestCase(SearxTestCase):
def test_index_html(self, search):
search.return_value = (
self.test_results,
+ set(),
+ set(),
set()
)
result = self.app.post('/', data={'q': 'test'})
@@ -51,7 +53,7 @@ class ViewsTestCase(SearxTestCase):
result.data
)
self.assertIn(
- '<p class="content">first <span class="highlight">test</span> content<br /></p>', # noqa
+ '<p class="content">first <span class="highlight">test</span> content<br class="last"/></p>', # noqa
result.data
)
@@ -59,6 +61,8 @@ class ViewsTestCase(SearxTestCase):
def test_index_json(self, search):
search.return_value = (
self.test_results,
+ set(),
+ set(),
set()
)
result = self.app.post('/', data={'q': 'test', 'format': 'json'})
@@ -75,6 +79,8 @@ class ViewsTestCase(SearxTestCase):
def test_index_csv(self, search):
search.return_value = (
self.test_results,
+ set(),
+ set(),
set()
)
result = self.app.post('/', data={'q': 'test', 'format': 'csv'})
@@ -90,6 +96,8 @@ class ViewsTestCase(SearxTestCase):
def test_index_rss(self, search):
search.return_value = (
self.test_results,
+ set(),
+ set(),
set()
)
result = self.app.post('/', data={'q': 'test', 'format': 'rss'})