Use different test string to test translations

This commit is contained in:
Micah Lee 2020-09-14 16:10:56 -07:00
parent 78ba479a35
commit 9a03f00367
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -25,7 +25,7 @@ class TestLoadStrings:
""" load_strings() loads English by default """
common_obj.settings = Settings(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(
self, common_obj, locale_fr, sys_onionshare_dev_mode
@ -34,7 +34,7 @@ class TestLoadStrings:
common_obj.settings = Settings(common_obj)
common_obj.settings.set("locale", "fr")
strings.load_strings(common_obj)
assert strings._("preparing_files") == "Compression des fichiers."
assert strings._("not_a_readable_file") == "{0:s} nest pas un fichier lisible."
def test_load_invalid_locale(
self, common_obj, locale_invalid, sys_onionshare_dev_mode