diff options
author | Micah Lee <micah@micahflee.com> | 2020-09-14 16:10:56 -0700 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2020-09-14 16:10:56 -0700 |
commit | 9a03f003671bc2413cd679bb1bc35a8dbee6b873 (patch) | |
tree | 5361531db2cd96d58add676ed801115c8e3afdc6 | |
parent | 78ba479a35260ffdcaf724168802e40ecfa7aae8 (diff) | |
download | onionshare-9a03f003671bc2413cd679bb1bc35a8dbee6b873.tar.gz onionshare-9a03f003671bc2413cd679bb1bc35a8dbee6b873.zip |
Use different test string to test translations
-rw-r--r-- | tests/test_cli_strings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cli_strings.py b/tests/test_cli_strings.py index bb4ccdde..8c90240f 100644 --- a/tests/test_cli_strings.py +++ b/tests/test_cli_strings.py @@ -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} n’est pas un fichier lisible." def test_load_invalid_locale( self, common_obj, locale_invalid, sys_onionshare_dev_mode |