From 277805ba5b02e0b7c87955fbfab42cb66374133c Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Sun, 4 Sep 2016 20:02:20 -0700 Subject: [PATCH] Fix strings tests, now that load_strings needs helpers as an arg --- test/onionshare_strings_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/onionshare_strings_test.py b/test/onionshare_strings_test.py index 819c1e87..5245a4a1 100644 --- a/test/onionshare_strings_test.py +++ b/test/onionshare_strings_test.py @@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . """ import locale -from onionshare import strings +from onionshare import helpers, strings def test_starts_with_empty_strings(): @@ -29,12 +29,12 @@ def test_starts_with_empty_strings(): def test_load_strings_defaults_to_english(): """load_strings() loads English by default""" locale.getdefaultlocale = lambda: ('en_US', 'UTF-8') - strings.load_strings() + strings.load_strings(helpers) assert strings._('wait_for_hs') == "Waiting for HS to be ready:" def test_load_strings_loads_other_languages(): """load_strings() loads other languages in different locales""" locale.getdefaultlocale = lambda: ('fr_FR', 'UTF-8') - strings.load_strings("fr") + strings.load_strings(helpers, "fr") assert strings._('wait_for_hs') == "En attente du HS:"