test_get_locale_key needs PyICU

This commit is contained in:
Bastian Germann 2018-10-06 21:04:09 +02:00
parent 1574ecd4f3
commit 6edd85146d
2 changed files with 2 additions and 2 deletions

View File

@ -200,6 +200,6 @@ using a computer and a data projector.""",
'sword-bibles': ['pysword'], 'sword-bibles': ['pysword'],
'xdg': ['pyxdg'] 'xdg': ['pyxdg']
}, },
tests_require=['nose2', 'pylint'], tests_require=['nose2', 'PyICU', 'pylint'],
entry_points={'gui_scripts': ['openlp = openlp.__main__:start']} entry_points={'gui_scripts': ['openlp = openlp.__main__:start']}
) )

View File

@ -113,11 +113,11 @@ def test_get_language_invalid_with_none():
assert language is None assert language is None
@skipIf(is_macosx(), 'This test doesn\'t work on macOS currently')
def test_get_locale_key(): def test_get_locale_key():
""" """
Test the get_locale_key(string) function Test the get_locale_key(string) function
""" """
import icu
with patch('openlp.core.common.i18n.LanguageManager.get_language') as mocked_get_language: with patch('openlp.core.common.i18n.LanguageManager.get_language') as mocked_get_language:
# GIVEN: The language is German # GIVEN: The language is German
# 0x00C3 (A with diaresis) should be sorted as "A". 0x00DF (sharp s) should be sorted as "ss". # 0x00C3 (A with diaresis) should be sorted as "A". 0x00DF (sharp s) should be sorted as "ss".