=
commited on
Commit
·
023cf2c
1
Parent(s):
eaf7d7b
fixed docs build
Browse files- README.rst +37 -0
- setup.cfg +1 -1
- setup.py +1 -1
README.rst
CHANGED
@@ -359,6 +359,43 @@ Side Hint
|
|
359 |
Generally, I find the google and mymemory translators suitable for translating texts/paragraphs, whereas
|
360 |
the pons and linguee translators are good choices if you want to translate words.
|
361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
362 |
========
|
363 |
Links
|
364 |
========
|
|
|
359 |
Generally, I find the google and mymemory translators suitable for translating texts/paragraphs, whereas
|
360 |
the pons and linguee translators are good choices if you want to translate words.
|
361 |
|
362 |
+
======
|
363 |
+
Tests
|
364 |
+
======
|
365 |
+
|
366 |
+
- Install dev requirements
|
367 |
+
|
368 |
+
.. code-block:: console
|
369 |
+
|
370 |
+
$ pip install -r requirements_dev.txt
|
371 |
+
|
372 |
+
- Or just install pytest
|
373 |
+
|
374 |
+
.. code-block:: console
|
375 |
+
|
376 |
+
$ pip install pytest
|
377 |
+
|
378 |
+
|
379 |
+
- you can run tests individually for each translator by passing the prefix **test_** followed by the translator name as an argument to pytest.
|
380 |
+
|
381 |
+
.. code-block:: console
|
382 |
+
|
383 |
+
$ pytest test_google_trans
|
384 |
+
$ pytest test_linguee
|
385 |
+
$ pytest test_mymemory
|
386 |
+
$ pytest test_pons
|
387 |
+
|
388 |
+
- Alternatively, you can run the test suite
|
389 |
+
|
390 |
+
.. code-block:: console
|
391 |
+
|
392 |
+
$ pytest -ra
|
393 |
+
|
394 |
+
|
395 |
+
|
396 |
+
|
397 |
+
|
398 |
+
|
399 |
========
|
400 |
Links
|
401 |
========
|
setup.cfg
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
[bumpversion]
|
2 |
-
current_version = 1.1.
|
3 |
commit = True
|
4 |
tag = True
|
5 |
|
|
|
1 |
[bumpversion]
|
2 |
+
current_version = 1.1.9
|
3 |
commit = True
|
4 |
tag = True
|
5 |
|
setup.py
CHANGED
@@ -51,6 +51,6 @@ setup(
|
|
51 |
test_suite='tests',
|
52 |
tests_require=test_requirements,
|
53 |
url='https://github.com/nidhaloff/deep_translator',
|
54 |
-
version='1.1.
|
55 |
zip_safe=False,
|
56 |
)
|
|
|
51 |
test_suite='tests',
|
52 |
tests_require=test_requirements,
|
53 |
url='https://github.com/nidhaloff/deep_translator',
|
54 |
+
version='1.1.9',
|
55 |
zip_safe=False,
|
56 |
)
|