mirror of
https://github.com/searxng/searxng.git
synced 2024-12-24 10:10:29 +00:00
[fix] flake8 compliance in test
This commit is contained in:
parent
d05c676ed5
commit
16d6e758d7
1 changed files with 17 additions and 17 deletions
|
@ -22,23 +22,23 @@ class TestWolframAlphaNoAPIEngine(SearxTestCase):
|
||||||
self.assertRaises(AttributeError, wolframalpha_noapi.response, '')
|
self.assertRaises(AttributeError, wolframalpha_noapi.response, '')
|
||||||
self.assertRaises(AttributeError, wolframalpha_noapi.response, '[]')
|
self.assertRaises(AttributeError, wolframalpha_noapi.response, '[]')
|
||||||
|
|
||||||
html = """
|
html = """
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<title> Parangaricutirimícuaro - Wolfram|Alpha</title>
|
<title> Parangaricutirimícuaro - Wolfram|Alpha</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<body>
|
<body>
|
||||||
<div id="closest">
|
<div id="closest">
|
||||||
<p class="pfail">Wolfram|Alpha doesn't know how to interpret your input.</p>
|
<p class="pfail">Wolfram|Alpha doesn't know how to interpret your input.</p>
|
||||||
<div id="dtips">
|
<div id="dtips">
|
||||||
<div class="tip">
|
<div class="tip">
|
||||||
<span class="tip-title">Tip: </span>
|
<span class="tip-title">Tip: </span>
|
||||||
Check your spelling, and use English
|
Check your spelling, and use English
|
||||||
<span class="tip-extra"></span>
|
<span class="tip-extra"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
response = mock.Mock(text=html)
|
response = mock.Mock(text=html)
|
||||||
|
|
Loading…
Reference in a new issue