mirror of
https://github.com/searxng/searxng.git
synced 2026-05-25 04:14:31 +02:00
[fix] test_locale_optimized_territory_1_fr (test_locales.TestLocales)
Unit test fails::
Traceback (most recent call last):
File "/share/searxng/local/py3/lib/python3.10/site-packages/parameterized/parameterized.py", line 620, in standalone_func
return func(*(a + p.args), **p.kwargs, **kw)
File "/share/searxng/tests/unit/test_locales.py", line 121, in test_locale_optimized_territory
self.assertEqual(locales.match_locale(locale, locale_list), expected_locale)
AssertionError: 'fr-CH' != 'fr-BE'
- fr-CH
+ fr-BE
With the `babel` update from 2.17.0 to 2.18.0 the population DB has been
updated (the test was implemented for the old values).
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
committed by
Markus Heiser
parent
578e59a54e
commit
b5bb27f231
+1
-1
@@ -366,7 +366,7 @@ def get_engine_locale(searxng_locale: str, engine_locales: dict[str, str], defau
|
||||
if engine_locale is None:
|
||||
engine_locale = default
|
||||
|
||||
return default
|
||||
return engine_locale
|
||||
|
||||
|
||||
def match_locale(searxng_locale: str, locale_tag_list: list[str], fallback: str | None = None) -> str | None:
|
||||
|
||||
Reference in New Issue
Block a user