summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfirebovine <firebovine@gmail.com>2016-09-10 18:04:24 -0400
committerfirebovine <firebovine@gmail.com>2016-09-10 18:04:24 -0400
commitf67db1e107ec4a9c211771a584fa3d7e20c914d8 (patch)
treefa341a7f943f728a819ec5227ea22978878a2f05 /tests
parent2bc42b378d9ed197c4b94db3371c26106c648d03 (diff)
downloadsearxng-f67db1e107ec4a9c211771a584fa3d7e20c914d8.tar.gz
searxng-f67db1e107ec4a9c211771a584fa3d7e20c914d8.zip
fix tests to reflect: Wolfram|Alpha (input) response
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/engines/test_wolframalpha_api.py4
-rw-r--r--tests/unit/engines/test_wolframalpha_noapi.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/engines/test_wolframalpha_api.py b/tests/unit/engines/test_wolframalpha_api.py
index f5b3538a3..64a64ceb3 100644
--- a/tests/unit/engines/test_wolframalpha_api.py
+++ b/tests/unit/engines/test_wolframalpha_api.py
@@ -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'])
diff --git a/tests/unit/engines/test_wolframalpha_noapi.py b/tests/unit/engines/test_wolframalpha_noapi.py
index b3688a5e8..982edd9f2 100644
--- a/tests/unit/engines/test_wolframalpha_noapi.py
+++ b/tests/unit/engines/test_wolframalpha_noapi.py
@@ -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'])