|
@@ -43,6 +43,8 @@ class ViewsTestCase(SearxTestCase):
|
43
|
43
|
def test_index_html(self, search):
|
44
|
44
|
search.return_value = (
|
45
|
45
|
self.test_results,
|
|
46
|
+ set(),
|
|
47
|
+ set(),
|
46
|
48
|
set()
|
47
|
49
|
)
|
48
|
50
|
result = self.app.post('/', data={'q': 'test'})
|
|
@@ -51,7 +53,7 @@ class ViewsTestCase(SearxTestCase):
|
51
|
53
|
result.data
|
52
|
54
|
)
|
53
|
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
|
57
|
result.data
|
56
|
58
|
)
|
57
|
59
|
|
|
@@ -59,6 +61,8 @@ class ViewsTestCase(SearxTestCase):
|
59
|
61
|
def test_index_json(self, search):
|
60
|
62
|
search.return_value = (
|
61
|
63
|
self.test_results,
|
|
64
|
+ set(),
|
|
65
|
+ set(),
|
62
|
66
|
set()
|
63
|
67
|
)
|
64
|
68
|
result = self.app.post('/', data={'q': 'test', 'format': 'json'})
|
|
@@ -75,6 +79,8 @@ class ViewsTestCase(SearxTestCase):
|
75
|
79
|
def test_index_csv(self, search):
|
76
|
80
|
search.return_value = (
|
77
|
81
|
self.test_results,
|
|
82
|
+ set(),
|
|
83
|
+ set(),
|
78
|
84
|
set()
|
79
|
85
|
)
|
80
|
86
|
result = self.app.post('/', data={'q': 'test', 'format': 'csv'})
|
|
@@ -90,6 +96,8 @@ class ViewsTestCase(SearxTestCase):
|
90
|
96
|
def test_index_rss(self, search):
|
91
|
97
|
search.return_value = (
|
92
|
98
|
self.test_results,
|
|
99
|
+ set(),
|
|
100
|
+ set(),
|
93
|
101
|
set()
|
94
|
102
|
)
|
95
|
103
|
result = self.app.post('/', data={'q': 'test', 'format': 'rss'})
|