From 8e70c25ee02cb6921b58dac7b2f8c511d7a0de7e Mon Sep 17 00:00:00 2001 From: Game_Time <108236317+RayBytes@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:16:33 +0500 Subject: [PATCH] updating tests to add tests back since they were removed for some reason? --- tests/__main__.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/__main__.py b/tests/__main__.py index c4d440b..335d4d5 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -83,11 +83,20 @@ def test_models(): def test_all(): """Runs all tests.""" - # print(test_server()) - # print(test_api()) + print("Running test on API server to check if its running.." + print(test_server()) + + print("Running a api endpoint to see if requests can go through..." + print(test_api()) + + print("Checking if the API works with the python library..." print(test_library()) - # print(test_library_moderation()) - # print(test_models()) + + print("Checking if the moderation endpoint works...") + print(test_library_moderation()) + + print("Checking if all models can be GET" + print(test_models()) def test_api_moderation(model: str=MODEL, messages: List[dict]=None) -> dict: """Tests an API api_endpoint."""