Skip to content

Commit

Permalink
Troubleshooting test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Apr 25, 2024
1 parent 905c2a4 commit ce027e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pytest
neon-lang-plugin-libretranslate
ovos-bus-client
ovos-bus-client~=0.0
2 changes: 2 additions & 0 deletions tests/lang_transform_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit ce027e8

Please sign in to comment.