mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 15:59:48 -05:00
Use different test string to test translations
This commit is contained in:
parent
78ba479a35
commit
9a03f00367
@ -25,7 +25,7 @@ class TestLoadStrings:
|
|||||||
""" load_strings() loads English by default """
|
""" load_strings() loads English by default """
|
||||||
common_obj.settings = Settings(common_obj)
|
common_obj.settings = Settings(common_obj)
|
||||||
strings.load_strings(common_obj)
|
strings.load_strings(common_obj)
|
||||||
assert strings._("preparing_files") == "Compressing files."
|
assert strings._("not_a_readable_file") == "{0:s} is not a readable file."
|
||||||
|
|
||||||
def test_load_strings_loads_other_languages(
|
def test_load_strings_loads_other_languages(
|
||||||
self, common_obj, locale_fr, sys_onionshare_dev_mode
|
self, common_obj, locale_fr, sys_onionshare_dev_mode
|
||||||
@ -34,7 +34,7 @@ class TestLoadStrings:
|
|||||||
common_obj.settings = Settings(common_obj)
|
common_obj.settings = Settings(common_obj)
|
||||||
common_obj.settings.set("locale", "fr")
|
common_obj.settings.set("locale", "fr")
|
||||||
strings.load_strings(common_obj)
|
strings.load_strings(common_obj)
|
||||||
assert strings._("preparing_files") == "Compression des fichiers."
|
assert strings._("not_a_readable_file") == "{0:s} n’est pas un fichier lisible."
|
||||||
|
|
||||||
def test_load_invalid_locale(
|
def test_load_invalid_locale(
|
||||||
self, common_obj, locale_invalid, sys_onionshare_dev_mode
|
self, common_obj, locale_invalid, sys_onionshare_dev_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user