summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc Abonce Seguin <marc-abonce@mailbox.org>2019-01-06 21:31:45 -0600
committerMarc Abonce Seguin <marc-abonce@mailbox.org>2019-01-06 21:31:45 -0600
commit0169b63e849d45b8d68e08dd324726cc61be5e46 (patch)
tree23d33fa17b961322d2b97d167e7d732875b36795 /tests
parent51111c2594fc7059df03b7a9d3fcf27c022ba804 (diff)
downloadsearxng-0169b63e849d45b8d68e08dd324726cc61be5e46.tar.gz
searxng-0169b63e849d45b8d68e08dd324726cc61be5e46.zip
[fix] fetch google's supported languages
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/engines/test_google.py30
1 files changed, 7 insertions, 23 deletions
diff --git a/tests/unit/engines/test_google.py b/tests/unit/engines/test_google.py
index 5282c6713..a73e9d2be 100644
--- a/tests/unit/engines/test_google.py
+++ b/tests/unit/engines/test_google.py
@@ -205,29 +205,13 @@ class TestGoogleEngine(SearxTestCase):
html = u"""
<html>
<body>
- <table>
- <tbody>
- <tr>
- <td>
- <font>
- <label>
- <span id="ten">English</span>
- </label>
- </font>
- </td>
- <td>
- <font>
- <label>
- <span id="tzh-CN">中文 (简体)</span>
- </label>
- <label>
- <span id="tzh-TW">中文 (繁體)</span>
- </label>
- </font>
- </td>
- </tr>
- </tbody>
- </table>
+ <div id="langSec">
+ <div>
+ <input name="lr" data-name="english" value="lang_en" />
+ <input name="lr" data-name="中文 (简体)" value="lang_zh-CN" />
+ <input name="lr" data-name="中文 (繁體)" value="lang_zh-TW" />
+ </div>
+ </div>
</body>
</html>
"""