From 9a03f003671bc2413cd679bb1bc35a8dbee6b873 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 14 Sep 2020 16:10:56 -0700 Subject: [PATCH] Use different test string to test translations --- tests/test_cli_strings.py | 4 ++-- 1 file 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