summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2016-09-04 20:02:20 -0700
committerMicah Lee <micah@micahflee.com>2016-09-04 20:02:20 -0700
commit22f104cf652f1eeeda46fa7482dfa65c0a0d3840 (patch)
treefb1d1d9693f6a3f9babff4a5262258254ef937e0 /test
parentacd8afeb80ad9dc1f20e2cddf2dfe6749227ba3c (diff)
downloadonionshare-22f104cf652f1eeeda46fa7482dfa65c0a0d3840.tar.gz
onionshare-22f104cf652f1eeeda46fa7482dfa65c0a0d3840.zip
Fix strings tests, now that load_strings needs helpers as an arg
Diffstat (limited to 'test')
-rw-r--r--test/onionshare_strings_test.py6
1 files 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 <http://www.gnu.org/licenses/>.
"""
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:"