From f4b03e060052906d3bde3894f485fe1341601336 Mon Sep 17 00:00:00 2001 From: Animenosekai <40539549+Animenosekai@users.noreply.github.com> Date: Sun, 25 Apr 2021 19:26:51 +0200 Subject: [PATCH] [add] Adding a unit test for text_to_speech --- test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test.py b/test.py index 6ad442fa..3a11ef94 100644 --- a/test.py +++ b/test.py @@ -32,11 +32,16 @@ def test_example(): print("[test] --> Testing Translator.example") assert t.example("Hello", "japanese") is not None + def test_dictionary(): print("[test] --> Testing Translator.dictionary") #assert t.dictionary("Hello", "Japanese") is not None # I can't test dictionary as DeepL is very strict on their rate-limit +def test_text_to_speech(): + print("[test] --> Testing Translator.text_to_speech") + assert t.text_to_speech("Hello, how are you?", "English") is not None + def test_imports(): print("[test] --> Testing imports") from translatepy.data import data