@@ -43,6 +43,8 @@ class ViewsTestCase(SearxTestCase):
43 def test_index_html(self, search):
43 def test_index_html(self, search):
44 search.return_value = (
44 search.return_value = (
45 self.test_results,
45 self.test_results,
48 result = self.app.post('/', data={'q': 'test'})
50 result = self.app.post('/', data={'q': 'test'})
@@ -51,7 +53,7 @@ class ViewsTestCase(SearxTestCase):
51 result.data
53 result.data
53 self.assertIn(
55 self.assertIn(
54− '<p class="content">first <span class="highlight">test</span> content<br /></p>', # noqa
56+ '<p class="content">first <span class="highlight">test</span> content<br class="last"/></p>', # noqa
55 result.data
57 result.data
@@ -59,6 +61,8 @@ class ViewsTestCase(SearxTestCase):
59 def test_index_json(self, search):
61 def test_index_json(self, search):
60 search.return_value = (
62 search.return_value = (
61 self.test_results,
63 self.test_results,
64 result = self.app.post('/', data={'q': 'test', 'format': 'json'})
68 result = self.app.post('/', data={'q': 'test', 'format': 'json'})
@@ -75,6 +79,8 @@ class ViewsTestCase(SearxTestCase):
75 def test_index_csv(self, search):
79 def test_index_csv(self, search):
76 search.return_value = (
80 search.return_value = (
77 self.test_results,
81 self.test_results,
80 result = self.app.post('/', data={'q': 'test', 'format': 'csv'})
86 result = self.app.post('/', data={'q': 'test', 'format': 'csv'})
@@ -90,6 +96,8 @@ class ViewsTestCase(SearxTestCase):
90 def test_index_rss(self, search):
96 def test_index_rss(self, search):
91 search.return_value = (
97 search.return_value = (
92 self.test_results,
98 self.test_results,
95 result = self.app.post('/', data={'q': 'test', 'format': 'rss'})
103 result = self.app.post('/', data={'q': 'test', 'format': 'rss'})