Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jul 25, 2024
1 parent 39a0f29 commit 29869b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ pytest
pytest-timeout
pytest-cov
ovos-translate-server-plugin
ovos-classifiers
ovos-utils>=0.1.0a8
4 changes: 2 additions & 2 deletions test/unittests/test_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ def test_translation(self):
solver.translator.translate.return_value = "a wild translation appears"

# no translation
ans = solver.spoken_answer("some query")
ans = solver.spoken_answer("some query", lang="en")
solver.translator.translate.assert_not_called()

# translation
ans = solver.spoken_answer("not english", context={"lang": "unk"})
ans = solver.spoken_answer("not english", lang="unk")
solver.translator.translate.assert_called()


Expand Down

0 comments on commit 29869b0

Please sign in to comment.