diff options
| author | Adam Tauber <adam.tauber@balabit.com> | 2015-10-16 12:27:15 +0200 |
|---|---|---|
| committer | Adam Tauber <adam.tauber@balabit.com> | 2015-10-16 12:27:15 +0200 |
| commit | d8ef98371bd599be28307778d85dcee549d99f74 (patch) | |
| tree | f2a9f40f19e5520e1b60e4b930b961de1c71db6a /searx/tests/test_search.py | |
| parent | f1ac794a0737c76516cf6c324027f2dd718a67a1 (diff) | |
| parent | 66a70c6ae4ebddc5b1d9b4e4414d66239781617c (diff) | |
Merge remote-tracking branch 'remotes/origin/result-handling-refactor'
Diffstat (limited to 'searx/tests/test_search.py')
| -rw-r--r-- | searx/tests/test_search.py | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/searx/tests/test_search.py b/searx/tests/test_search.py index 89d0b620d..af5fffd8b 100644 --- a/searx/tests/test_search.py +++ b/searx/tests/test_search.py @@ -1,25 +1,10 @@ # -*- coding: utf-8 -*- -from searx.search import score_results from searx.testing import SearxTestCase -def fake_result(url='https://aa.bb/cc?dd=ee#ff', - title='aaa', - content='bbb', - engine='wikipedia'): - return {'url': url, - 'title': title, - 'content': content, - 'engine': engine} +# TODO +class SearchTestCase(SearxTestCase): - -class ScoreResultsTestCase(SearxTestCase): - - def test_empty(self): - self.assertEqual(score_results(dict()), []) - - def test_urlparse(self): - results = score_results(dict(a=[fake_result(url='https://aa.bb/cc?dd=ee#ff')])) - parsed_url = results[0]['parsed_url'] - self.assertEqual(parsed_url.query, 'dd=ee') + def test_(self): + pass |