From 513b5f66537423c8b4c27a22d247e83237a0c8f9 Mon Sep 17 00:00:00 2001 From: Ronnie Villanueva Date: Sun, 5 Nov 2023 15:10:34 +0800 Subject: [PATCH] test(classes_test.py): add initial tests --- tests/classes_test.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/classes_test.py diff --git a/tests/classes_test.py b/tests/classes_test.py new file mode 100644 index 0000000..7683fbb --- /dev/null +++ b/tests/classes_test.py @@ -0,0 +1,14 @@ +from pyplayht.classes import Client + + +def test_client(): + client = Client() + # check for available methods + assert hasattr(client, "get_voices") and callable(client.get_voices) + assert hasattr(client, "new_conversion_job") and callable( + client.new_conversion_job, + ) + assert hasattr(client, "get_coversion_job_status") and callable( + client.get_coversion_job_status, + ) + assert hasattr(client, "download_file") and callable(client.download_file)