diff options
author | asciimoo <asciimoo@gmail.com> | 2014-02-07 01:19:07 +0100 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2014-02-07 01:19:07 +0100 |
commit | 0540ea9ee21a2465b417249af4abed9b50917603 (patch) | |
tree | 83d9141a9efe8724e6a255bd25662bfe1c3a3af4 /searx/tests | |
parent | e56d7a58c7e6680f3fbcf6dc3c691a08c04ee674 (diff) | |
download | searxng-0540ea9ee21a2465b417249af4abed9b50917603.tar.gz searxng-0540ea9ee21a2465b417249af4abed9b50917603.zip |
[enh][mod] code refactor ++ search engine filtering
Diffstat (limited to 'searx/tests')
-rw-r--r-- | searx/tests/test_webapp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/tests/test_webapp.py b/searx/tests/test_webapp.py index 284dc3c75..67b2c4bde 100644 --- a/searx/tests/test_webapp.py +++ b/searx/tests/test_webapp.py @@ -39,7 +39,7 @@ class ViewsTestCase(SearxTestCase): self.assertEqual(result.status_code, 200) self.assertIn('<div class="title"><h1>searx</h1></div>', result.data) - @patch('searx.webapp.search') + @patch('searx.webapp.do_search') def test_index_html(self, search): search.return_value = ( self.test_results, @@ -55,7 +55,7 @@ class ViewsTestCase(SearxTestCase): result.data ) - @patch('searx.webapp.search') + @patch('searx.webapp.do_search') def test_index_json(self, search): search.return_value = ( self.test_results, @@ -71,7 +71,7 @@ class ViewsTestCase(SearxTestCase): self.assertEqual( result_dict['results'][0]['url'], 'http://first.test.xyz') - @patch('searx.webapp.search') + @patch('searx.webapp.do_search') def test_index_csv(self, search): search.return_value = ( self.test_results, @@ -86,7 +86,7 @@ class ViewsTestCase(SearxTestCase): result.data ) - @patch('searx.webapp.search') + @patch('searx.webapp.do_search') def test_index_rss(self, search): search.return_value = ( self.test_results, |