[Pkg-privacy-commits] [onionshare] 35/55: Fix strings tests, now that load_strings needs helpers as an arg

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Sep 8 10:27:15 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch debian
in repository onionshare.

commit 22f104cf652f1eeeda46fa7482dfa65c0a0d3840
Author: Micah Lee <micah at micahflee.com>
Date:   Sun Sep 4 20:02:20 2016 -0700

    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 819c1e8..5245a4a 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:"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list