forked from Icycoide/searxng
[enh] py3 compatibility
This commit is contained in:
parent
46a2c63f8e
commit
52e615dede
115 changed files with 517 additions and 513 deletions
|
@ -1,5 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from json import loads
|
||||
from lxml.html import fromstring
|
||||
from collections import defaultdict
|
||||
import mock
|
||||
|
@ -31,7 +30,7 @@ class TestWikidataEngine(SearxTestCase):
|
|||
self.assertRaises(AttributeError, wikidata.response, '')
|
||||
self.assertRaises(AttributeError, wikidata.response, '[]')
|
||||
|
||||
response = mock.Mock(content='<html></html>', search_params={"language": "all"})
|
||||
response = mock.Mock(text='<html></html>', search_params={"language": "all"})
|
||||
self.assertEqual(wikidata.response(response), [])
|
||||
|
||||
def test_getDetail(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue