Nidhal Baccouri
commited on
Commit
·
26e3a48
1
Parent(s):
3aa1058
removed tests for digit
Browse files- tests/test_google.py +0 -3
- tests/test_libre.py +0 -3
- tests/test_linguee.py +0 -3
- tests/test_mymemory.py +0 -3
- tests/test_pons.py +0 -3
tests/test_google.py
CHANGED
@@ -51,9 +51,6 @@ def test_payload(google_translator):
|
|
51 |
google_translator.translate(text="{}")
|
52 |
google_translator.translate(text="%@")
|
53 |
|
54 |
-
with pytest.raises(exceptions.NotValidPayload):
|
55 |
-
google_translator.translate(text=123)
|
56 |
-
|
57 |
with pytest.raises(exceptions.NotValidPayload):
|
58 |
google_translator.translate(text={})
|
59 |
|
|
|
51 |
google_translator.translate(text="{}")
|
52 |
google_translator.translate(text="%@")
|
53 |
|
|
|
|
|
|
|
54 |
with pytest.raises(exceptions.NotValidPayload):
|
55 |
google_translator.translate(text={})
|
56 |
|
tests/test_libre.py
CHANGED
@@ -32,9 +32,6 @@ def test_abbreviations_and_languages_mapping():
|
|
32 |
|
33 |
|
34 |
def test_payload(libre):
|
35 |
-
with pytest.raises(exceptions.NotValidPayload):
|
36 |
-
libre.translate(123)
|
37 |
-
|
38 |
with pytest.raises(exceptions.NotValidPayload):
|
39 |
libre.translate({})
|
40 |
|
|
|
32 |
|
33 |
|
34 |
def test_payload(libre):
|
|
|
|
|
|
|
35 |
with pytest.raises(exceptions.NotValidPayload):
|
36 |
libre.translate({})
|
37 |
|
tests/test_linguee.py
CHANGED
@@ -38,9 +38,6 @@ def test_inputs():
|
|
38 |
|
39 |
|
40 |
def test_payload(linguee):
|
41 |
-
with pytest.raises(exceptions.NotValidPayload):
|
42 |
-
linguee.translate(123)
|
43 |
-
|
44 |
with pytest.raises(exceptions.NotValidPayload):
|
45 |
linguee.translate({})
|
46 |
|
|
|
38 |
|
39 |
|
40 |
def test_payload(linguee):
|
|
|
|
|
|
|
41 |
with pytest.raises(exceptions.NotValidPayload):
|
42 |
linguee.translate({})
|
43 |
|
tests/test_mymemory.py
CHANGED
@@ -36,9 +36,6 @@ def test_inputs():
|
|
36 |
|
37 |
|
38 |
def test_payload(mymemory):
|
39 |
-
with pytest.raises(exceptions.NotValidPayload):
|
40 |
-
mymemory.translate(text=123)
|
41 |
-
|
42 |
with pytest.raises(exceptions.NotValidPayload):
|
43 |
mymemory.translate(text={})
|
44 |
|
|
|
36 |
|
37 |
|
38 |
def test_payload(mymemory):
|
|
|
|
|
|
|
39 |
with pytest.raises(exceptions.NotValidPayload):
|
40 |
mymemory.translate(text={})
|
41 |
|
tests/test_pons.py
CHANGED
@@ -36,9 +36,6 @@ def test_inputs():
|
|
36 |
|
37 |
|
38 |
def test_payload(pons):
|
39 |
-
with pytest.raises(exceptions.NotValidPayload):
|
40 |
-
pons.translate(123)
|
41 |
-
|
42 |
with pytest.raises(exceptions.NotValidPayload):
|
43 |
pons.translate({})
|
44 |
|
|
|
36 |
|
37 |
|
38 |
def test_payload(pons):
|
|
|
|
|
|
|
39 |
with pytest.raises(exceptions.NotValidPayload):
|
40 |
pons.translate({})
|
41 |
|