forked from Ponysearch/Ponysearch
fix tests to reflect: Wolfram|Alpha (input) response
This commit is contained in:
parent
2bc42b378d
commit
f67db1e107
2 changed files with 4 additions and 4 deletions
|
@ -103,7 +103,7 @@ class TestWolframAlphaAPIEngine(SearxTestCase):
|
|||
self.assertEqual(referer_url, results[0]['urls'][0]['url'])
|
||||
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
|
||||
self.assertEqual(referer_url, results[1]['url'])
|
||||
self.assertEqual('input_plaintext - Wolfram|Alpha', results[1]['title'])
|
||||
self.assertEqual('Wolfram|Alpha (input_plaintext)', results[1]['title'])
|
||||
self.assertIn('result_plaintext', results[1]['content'])
|
||||
|
||||
# test calc
|
||||
|
@ -162,5 +162,5 @@ class TestWolframAlphaAPIEngine(SearxTestCase):
|
|||
self.assertEqual(referer_url, results[0]['urls'][0]['url'])
|
||||
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
|
||||
self.assertEqual(referer_url, results[1]['url'])
|
||||
self.assertEqual('integral_plaintext - Wolfram|Alpha', results[1]['title'])
|
||||
self.assertEqual('Wolfram|Alpha (integral_plaintext)', results[1]['title'])
|
||||
self.assertIn('integral_plaintext', results[1]['content'])
|
||||
|
|
|
@ -140,7 +140,7 @@ class TestWolframAlphaNoAPIEngine(SearxTestCase):
|
|||
self.assertEqual(referer_url, results[0]['urls'][0]['url'])
|
||||
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
|
||||
self.assertEqual(referer_url, results[1]['url'])
|
||||
self.assertEqual('input_plaintext - Wolfram|Alpha', results[1]['title'])
|
||||
self.assertEqual('Wolfram|Alpha (input_plaintext)', results[1]['title'])
|
||||
self.assertIn('result_plaintext', results[1]['content'])
|
||||
|
||||
# test calc
|
||||
|
@ -220,5 +220,5 @@ class TestWolframAlphaNoAPIEngine(SearxTestCase):
|
|||
self.assertEqual(referer_url, results[0]['urls'][0]['url'])
|
||||
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
|
||||
self.assertEqual(referer_url, results[1]['url'])
|
||||
self.assertEqual('integral_plaintext - Wolfram|Alpha', results[1]['title'])
|
||||
self.assertEqual('Wolfram|Alpha (integral_plaintext)', results[1]['title'])
|
||||
self.assertIn('integral_plaintext', results[1]['content'])
|
||||
|
|
Loading…
Reference in a new issue