1
0
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:
firebovine 2016-09-10 18:04:24 -04:00
parent 2bc42b378d
commit f67db1e107
2 changed files with 4 additions and 4 deletions

View File

@ -103,7 +103,7 @@ class TestWolframAlphaAPIEngine(SearxTestCase):
self.assertEqual(referer_url, results[0]['urls'][0]['url']) self.assertEqual(referer_url, results[0]['urls'][0]['url'])
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title']) self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
self.assertEqual(referer_url, results[1]['url']) 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']) self.assertIn('result_plaintext', results[1]['content'])
# test calc # test calc
@ -162,5 +162,5 @@ class TestWolframAlphaAPIEngine(SearxTestCase):
self.assertEqual(referer_url, results[0]['urls'][0]['url']) self.assertEqual(referer_url, results[0]['urls'][0]['url'])
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title']) self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
self.assertEqual(referer_url, results[1]['url']) 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']) self.assertIn('integral_plaintext', results[1]['content'])

View File

@ -140,7 +140,7 @@ class TestWolframAlphaNoAPIEngine(SearxTestCase):
self.assertEqual(referer_url, results[0]['urls'][0]['url']) self.assertEqual(referer_url, results[0]['urls'][0]['url'])
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title']) self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
self.assertEqual(referer_url, results[1]['url']) 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']) self.assertIn('result_plaintext', results[1]['content'])
# test calc # test calc
@ -220,5 +220,5 @@ class TestWolframAlphaNoAPIEngine(SearxTestCase):
self.assertEqual(referer_url, results[0]['urls'][0]['url']) self.assertEqual(referer_url, results[0]['urls'][0]['url'])
self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title']) self.assertEqual('Wolfram|Alpha', results[0]['urls'][0]['title'])
self.assertEqual(referer_url, results[1]['url']) 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']) self.assertIn('integral_plaintext', results[1]['content'])