mirror of
https://github.com/searxng/searxng.git
synced 2025-07-13 16:29:17 +02:00
[fix] pass wolframalpha_noapi tests
This commit is contained in:
parent
e9d35c1309
commit
19d025f0e7
3 changed files with 33 additions and 20 deletions
|
@ -148,7 +148,8 @@ class TestWolframAlphaAPIEngine(SearxTestCase):
|
|||
response = mock.Mock(content=xml)
|
||||
results = wolframalpha_api.response(response)
|
||||
self.assertEqual(type(results), list)
|
||||
self.assertEqual(len(results), 2)
|
||||
# self.assertEqual(len(results), 2)
|
||||
self.assertEqual(len(results), 1)
|
||||
self.assertIn("i", results[0]['answer'])
|
||||
# self.assertIn("sqrt(-1) - Wolfram|Alpha", results[1]['title'])
|
||||
# self.assertIn("http://www.wolframalpha.com/input/?i=sqrt%28-1%29", results[1]['url'])
|
||||
|
@ -248,7 +249,8 @@ class TestWolframAlphaAPIEngine(SearxTestCase):
|
|||
response = mock.Mock(content=xml)
|
||||
results = wolframalpha_api.response(response)
|
||||
self.assertEqual(type(results), list)
|
||||
self.assertEqual(len(results), 2)
|
||||
# self.assertEqual(len(results), 2)
|
||||
self.assertEqual(len(results), 1)
|
||||
self.assertIn("log(x)+c", results[0]['answer'])
|
||||
# self.assertIn("integral 1/x - Wolfram|Alpha", results[1]['title'])
|
||||
# self.assertIn("http://www.wolframalpha.com/input/?i=integral+1%2Fx", results[1]['url'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue