RubénEu commited on
Commit
3eb36f5
·
1 Parent(s): 98f02df

Added tests for translate_words methods in linguee and pons

Browse files
deep_translator/tests/test_linguee.py CHANGED
@@ -47,3 +47,8 @@ def test_payload(linguee):
47
 
48
  with pytest.raises(exceptions.NotValidLength):
49
  linguee.translate("a"*51)
 
 
 
 
 
 
47
 
48
  with pytest.raises(exceptions.NotValidLength):
49
  linguee.translate("a"*51)
50
+
51
+
52
+ def test_translate_words(linguee):
53
+ words = ['hello', 'world']
54
+ translated_words = linguee.translate_words(words)
deep_translator/tests/test_pons.py CHANGED
@@ -46,3 +46,8 @@ def test_payload(pons):
46
 
47
  with pytest.raises(exceptions.NotValidLength):
48
  pons.translate("a" * 51)
 
 
 
 
 
 
46
 
47
  with pytest.raises(exceptions.NotValidLength):
48
  pons.translate("a" * 51)
49
+
50
+
51
+ def test_translate_words(pons):
52
+ words = ['hello', 'world']
53
+ translated_words = pons.translate_words(words)