From 66b7be09656798b745f95ff0ce7669db014b3b38 Mon Sep 17 00:00:00 2001 From: Marc Abonce Seguin Date: Mon, 4 Oct 2021 22:44:58 -0700 Subject: [fix] fix match_language issue to make zh-TW match to zh-Hant-TW pybabel separates locales with underscores but we use hyphens everywhere babel doesn't directly touch --- tests/unit/test_webapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit/test_webapp.py') diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index c2d57f80c..30b2839a8 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'