mirror of https://github.com/searxng/searxng.git
fix pep8 errors
This commit is contained in:
parent
33fa3da2e8
commit
3034c85163
|
@ -20,10 +20,12 @@ RESULT_URL = '{base}?{query}'
|
||||||
THUMB_URL = '{base}img/{episode}/{timestamp}/medium.jpg'
|
THUMB_URL = '{base}img/{episode}/{timestamp}/medium.jpg'
|
||||||
IMAGE_URL = '{base}img/{episode}/{timestamp}.jpg'
|
IMAGE_URL = '{base}img/{episode}/{timestamp}.jpg'
|
||||||
|
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
params['url'] = SEARCH_URL.format(base=BASE, query=urlencode({'q': query}))
|
params['url'] = SEARCH_URL.format(base=BASE, query=urlencode({'q': query}))
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
def response(resp):
|
def response(resp):
|
||||||
results = []
|
results = []
|
||||||
response_data = loads(resp.text)
|
response_data = loads(resp.text)
|
||||||
|
|
|
@ -24,15 +24,15 @@ class TestFrinkiacEngine(SearxTestCase):
|
||||||
'Episode': 'S05E21',
|
'Episode': 'S05E21',
|
||||||
'Timestamp': 3453455,
|
'Timestamp': 3453455,
|
||||||
'Filename': ''},
|
'Filename': ''},
|
||||||
{'Id': 435354,
|
{'Id': 435354,
|
||||||
'Episode': 'S05E22',
|
'Episode': 'S05E22',
|
||||||
'Timestamp': 3453456,
|
'Timestamp': 3453456,
|
||||||
'Filename': ''},
|
'Filename': ''},
|
||||||
{'Id': 435333,
|
{'Id': 435333,
|
||||||
'Episode': 'S05E23',
|
'Episode': 'S05E23',
|
||||||
'Timestamp': 3453457,
|
'Timestamp': 3453457,
|
||||||
'Filename': ''},
|
'Filename': ''},
|
||||||
{'Id': 477234,
|
{'Id': 477234,
|
||||||
'Episode': 'S05E24',
|
'Episode': 'S05E24',
|
||||||
'Timestamp': 3453458,
|
'Timestamp': 3453458,
|
||||||
'Filename': ''}])
|
'Filename': ''}])
|
||||||
|
|
Loading…
Reference in New Issue