From a706d79c807032ac03a09ad592b9ed6a3e11568a Mon Sep 17 00:00:00 2001 From: Nicolay Rusnachenko Date: Sat, 13 Jan 2024 10:42:08 +0000 Subject: [PATCH] #131 updated --- dependencies.txt | 1 + test/test_translation.py | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dependencies.txt b/dependencies.txt index 2a19418..5435f6a 100644 --- a/dependencies.txt +++ b/dependencies.txt @@ -6,4 +6,5 @@ arekit @ git+https://github.com/nicolay-r/AREkit@0.25.0-rc open-nre==0.1.1 nltk==3.8.1 googletrans==3.1.0a0 +httpcore==0.9.1 requests \ No newline at end of file diff --git a/test/test_translation.py b/test/test_translation.py index 1391de1..8676fd2 100644 --- a/test/test_translation.py +++ b/test/test_translation.py @@ -1,4 +1,10 @@ +import unittest + from arelight.third_party.googletrans import translate_value -x = translate_value("привет", dest="en", src="ru") -print(x) + +class TestTranslation(unittest.TestCase): + + def test(self): + x = translate_value("привет", dest="en", src="ru") + print(x)