@@ -18,7 +18,7 @@ class TestArchLinuxEngine(SearxTestCase):
1818 def test_request(self):
1919 query = 'test_query'
2020 dic = defaultdict(dict)
21− dic['pageno'] = 0
21+ dic['pageno'] = 1
2222 dic['language'] = 'en_US'
2323 params = archlinux.request(query, dic)
2424 self.assertTrue('url' in params)
@@ -31,10 +31,8 @@ class TestArchLinuxEngine(SearxTestCase):
3131 self.assertTrue(domain in params['url'])
3232
3333 def test_response(self):
34− response = mock.Mock(text='<html></html>')
35− response.search_params = {
36− 'language': 'en_US'
37− }
34+ response = mock.Mock(text='<html></html>',
35+ search_params={'language': 'en_US'})
3836 self.assertEqual(archlinux.response(response), [])
3937
4038 html = """
@@ -79,18 +77,15 @@ class TestArchLinuxEngine(SearxTestCase):
7977 expected = [
8078 {
8179 'title': 'ATI',
82− 'url': 'https://wiki.archlinux.org/index.php/ATI',
83− 'content': 'Lorem ipsum dolor sit amet'
80+ 'url': 'https://wiki.archlinux.org/index.php/ATI'
8481 },
8582 {
8683 'title': 'Frequently asked questions',
87− 'url': 'https://wiki.archlinux.org/index.php/Frequently_asked_questions',
88− 'content': 'CPUs with AMDs instruction set "AMD64"'
84+ 'url': 'https://wiki.archlinux.org/index.php/Frequently_asked_questions'
8985 },
9086 {
9187 'title': 'CPU frequency scaling',
92− 'url': 'https://wiki.archlinux.org/index.php/CPU_frequency_scaling',
93− 'content': 'ondemand for AMD and older Intel CPU'
88+ 'url': 'https://wiki.archlinux.org/index.php/CPU_frequency_scaling'
9489 }
9590 ]
9691