no mandatory icu for tests

This commit is contained in:
Bastian Germann 2018-10-16 09:09:18 +02:00
parent 035bd08a9a
commit f0fb9e773d
2 changed files with 1 additions and 2 deletions

View File

@ -138,7 +138,6 @@ elif sys.platform.startswith('darwin'):
'pyobjc-framework-Cocoa'
])
elif sys.platform.startswith('linux'):
# dbus-python could be replaced by PyQt5.QtDBus
requires.append('dbus-python')
setup(

View File

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