diff options
author | Kang-min Liu <gugod@gugod.org> | 2015-11-14 00:02:36 +0100 |
---|---|---|
committer | Kang-min Liu <gugod@gugod.org> | 2015-11-14 00:02:36 +0100 |
commit | c7c6c35ccd7373d2107b70b92badb9b70d31905f (patch) | |
tree | 06508dd6b10ee98c3a80cbaf96f7e87b27112f6a /searx/tests | |
parent | 01d2fb9f703fee2a28cdb4c6583158054f9d7558 (diff) | |
download | searxng-c7c6c35ccd7373d2107b70b92badb9b70d31905f.tar.gz searxng-c7c6c35ccd7373d2107b70b92badb9b70d31905f.zip |
fix test faliures of btdigg engine.
This fix the test failures related to 01d2fb9f703fee2a28cdb4c6583158054f9d7558
Diffstat (limited to 'searx/tests')
-rw-r--r-- | searx/tests/engines/test_btdigg.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/tests/engines/test_btdigg.py b/searx/tests/engines/test_btdigg.py index 4947b71da..2721f4e7c 100644 --- a/searx/tests/engines/test_btdigg.py +++ b/searx/tests/engines/test_btdigg.py @@ -22,7 +22,7 @@ class TestBtdiggEngine(SearxTestCase): self.assertRaises(AttributeError, btdigg.response, '') self.assertRaises(AttributeError, btdigg.response, '[]') - response = mock.Mock(text='<html></html>') + response = mock.Mock(content='<html></html>') self.assertEqual(btdigg.response(response), []) html = """ @@ -82,7 +82,7 @@ class TestBtdiggEngine(SearxTestCase): </table> </div> """ - response = mock.Mock(text=html) + response = mock.Mock(content=html) results = btdigg.response(response) self.assertEqual(type(results), list) self.assertEqual(len(results), 1) @@ -101,7 +101,7 @@ class TestBtdiggEngine(SearxTestCase): </table> </div> """ - response = mock.Mock(text=html) + response = mock.Mock(content=html) results = btdigg.response(response) self.assertEqual(type(results), list) self.assertEqual(len(results), 0) @@ -367,7 +367,7 @@ class TestBtdiggEngine(SearxTestCase): </table> </div> """ - response = mock.Mock(text=html) + response = mock.Mock(content=html) results = btdigg.response(response) self.assertEqual(type(results), list) self.assertEqual(len(results), 5) |