diff --git a/requirements/test_requirements.txt b/requirements/test_requirements.txt index 805f95a..a7143bd 100644 --- a/requirements/test_requirements.txt +++ b/requirements/test_requirements.txt @@ -1,3 +1,3 @@ pytest neon-lang-plugin-libretranslate -ovos-bus-client \ No newline at end of file +ovos-bus-client~=0.0 \ No newline at end of file diff --git a/tests/lang_transform_tests.py b/tests/lang_transform_tests.py index 4f696fe..07a01c8 100644 --- a/tests/lang_transform_tests.py +++ b/tests/lang_transform_tests.py @@ -29,6 +29,7 @@ from unittest.mock import Mock from ovos_bus_client.message import Message +from libretranslate_neon_plugin import LibreTranslatePlugin sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from neon_utterance_translator_plugin import UtteranceTranslator @@ -53,6 +54,7 @@ def test_init(self): self.assertEqual(self.transformer.language_config, self.mock_config['language']) self.assertIsNone(self.transformer.lang_detector) + self.assertIsInstance(self.transformer.translator, LibreTranslatePlugin) def test_supported_lang_handling(self): # internal language (en)