diff options
author | Alexandre Flament <alex@al-f.net> | 2021-10-06 10:26:40 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2021-10-12 21:06:20 +0200 |
commit | a1d1aec6e2d8b6f9868e3b4b718bbc6b2fecd007 (patch) | |
tree | 675ee5d21ac21f1f68d1fba6e844abb33735c5e8 /tests | |
parent | 988910d451b4360209307ef2c3070fdb563d7c35 (diff) | |
download | searxng-a1d1aec6e2d8b6f9868e3b4b718bbc6b2fecd007.tar.gz searxng-a1d1aec6e2d8b6f9868e3b4b718bbc6b2fecd007.zip |
[mod] locale: use hyphen everywhere except for Babel
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/test_webapp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index 30b2839a8..ff58aa1e9 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -211,12 +211,12 @@ class ViewsTestCase(SearxTestCase): result = self.app.get('/preferences', headers={'Accept-Language': 'zh-tw;q=0.8'}) self.assertEqual(result.status_code, 200) self.assertIn( - b'<option value="zh_Hant_TW" selected="selected">', + b'<option value="zh-Hant-TW" selected="selected">', result.data, 'Interface locale ignored browser preference.' ) self.assertIn( - b'<option value="zh_Hant_TW" selected="selected">', + b'<option value="zh-Hant-TW" selected="selected">', result.data, 'Search language ignored browser preference.' ) |