mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-20 04:24:21 -04:00
Use different test string to test translations
This commit is contained in:
parent
df21f00448
commit
013c0c20f4
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue