diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2018-08-19 13:22:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-19 13:22:22 +0200 |
| commit | b75f1b6cc39a94989a74d52eb0f1267c3e3c665e (patch) | |
| tree | d3bab81ca2071196b1b4223d6d2db7d408b79bf2 /tests/unit/engines/test_google_news.py | |
| parent | e7f7eda18cc69287f30c512a98b4e90453bcd8e7 (diff) | |
| parent | 931c1bb0f663bc13998f5a78ae7cd9485d37453c (diff) | |
Merge branch 'master' into patch-2
Diffstat (limited to 'tests/unit/engines/test_google_news.py')
| -rw-r--r-- | tests/unit/engines/test_google_news.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/engines/test_google_news.py b/tests/unit/engines/test_google_news.py index 3769e3be6..a041a79b9 100644 --- a/tests/unit/engines/test_google_news.py +++ b/tests/unit/engines/test_google_news.py @@ -9,6 +9,7 @@ from searx.testing import SearxTestCase class TestGoogleNewsEngine(SearxTestCase): def test_request(self): + google_news.supported_languages = ['en-US', 'fr-FR'] query = 'test_query' dicto = defaultdict(dict) dicto['pageno'] = 1 @@ -41,7 +42,7 @@ class TestGoogleNewsEngine(SearxTestCase): <div class="ts _JGs _JHs _tJs _KGs _jHs"> <div class="_hJs"> <h3 class="r _gJs"> - <a class="l _PMs" href="https://example.com/" onmousedown="return rwt(this,'','','','11','AFQjCNEyehpzD5cJK1KUfXBx9RmsbqqG9g','','0ahUKEwjB58OR54HWAhWnKJoKHSQhAMY4ChCpAggiKAAwAA','','',event)">Example title</a> + <a class="l lLrAF" href="https://example.com/" onmousedown="return rwt(this,'','','','11','AFQjCNEyehpzD5cJK1KUfXBx9RmsbqqG9g','','0ahUKEwjB58OR54HWAhWnKJoKHSQhAMY4ChCpAggiKAAwAA','','',event)">Example title</a> </h3> <div class="slp"> <span class="_OHs _PHs"> @@ -62,7 +63,7 @@ class TestGoogleNewsEngine(SearxTestCase): </a> <div class="_hJs"> <h3 class="r _gJs"> - <a class="l _PMs" href="https://example2.com/" onmousedown="return rwt(this,'','','','12','AFQjCNHObfH7sYmLWI1SC-YhWXKZFRzRjw','','0ahUKEwjB58OR54HWAhWnKJoKHSQhAMY4ChCpAgglKAAwAQ','','',event)">Example title 2</a> + <a class="l lLrAF" href="https://example2.com/" onmousedown="return rwt(this,'','','','12','AFQjCNHObfH7sYmLWI1SC-YhWXKZFRzRjw','','0ahUKEwjB58OR54HWAhWnKJoKHSQhAMY4ChCpAgglKAAwAQ','','',event)">Example title 2</a> </h3> <div class="slp"> <span class="_OHs _PHs"> |