mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
fix tests to reflect: Wolfram|Alpha (input) response
This commit is contained in:
parent
2bc42b378d
commit
f67db1e107
@ -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 New Issue
Block a user