= commited on
Commit
f2a55e2
·
1 Parent(s): 1809958

added tests

Browse files
deep_translator/tests/test_deep_translator.py CHANGED
@@ -31,9 +31,15 @@ def test_inputs():
31
 
32
 
33
  def test_payload(google_translator):
 
34
  with pytest.raises(exceptions.NotValidPayload):
35
  google_translator.translate(text="")
 
36
  with pytest.raises(exceptions.NotValidPayload):
37
  google_translator.translate(text=123)
38
 
 
 
39
 
 
 
 
31
 
32
 
33
  def test_payload(google_translator):
34
+
35
  with pytest.raises(exceptions.NotValidPayload):
36
  google_translator.translate(text="")
37
+
38
  with pytest.raises(exceptions.NotValidPayload):
39
  google_translator.translate(text=123)
40
 
41
+ with pytest.raises(exceptions.NotValidPayload):
42
+ google_translator.translate(text={})
43
 
44
+ with pytest.raises(exceptions.NotValidPayload):
45
+ google_translator.translate(text=[])