diff options
author | marc <a01200356@itesm.mx> | 2016-07-06 17:29:40 -0500 |
---|---|---|
committer | firebovine <firebovine@gmail.com> | 2016-09-10 17:42:04 -0400 |
commit | 09ee2aa69dbd4815e0e1e1de53f3571972e04903 (patch) | |
tree | fbb9feb888d6b05f2fb10fba058b73e98e0adab9 /tests/unit/engines/test_wolframalpha_noapi.py | |
parent | 390ad59bfcd256e9145d7ef539acaf3a83a73c8b (diff) | |
download | searxng-09ee2aa69dbd4815e0e1e1de53f3571972e04903.tar.gz searxng-09ee2aa69dbd4815e0e1e1de53f3571972e04903.zip |
[fix] Result text in Wolfram|Alpha (#607)
Diffstat (limited to 'tests/unit/engines/test_wolframalpha_noapi.py')
-rw-r--r-- | tests/unit/engines/test_wolframalpha_noapi.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/engines/test_wolframalpha_noapi.py b/tests/unit/engines/test_wolframalpha_noapi.py index a8f73470e..b3688a5e8 100644 --- a/tests/unit/engines/test_wolframalpha_noapi.py +++ b/tests/unit/engines/test_wolframalpha_noapi.py @@ -140,7 +140,8 @@ 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('Wolfram|Alpha', results[1]['title']) + self.assertEqual('input_plaintext - Wolfram|Alpha', results[1]['title']) + self.assertIn('result_plaintext', results[1]['content']) # test calc json = r""" @@ -219,4 +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('Wolfram|Alpha', results[1]['title']) + self.assertEqual('integral_plaintext - Wolfram|Alpha', results[1]['title']) + self.assertIn('integral_plaintext', results[1]['content']) |