updating tests to add tests back since they were removed for some reason?

This commit is contained in:
Game_Time 2023-08-13 20:16:33 +05:00 committed by GitHub
parent 6ecc5f59ce
commit 8e70c25ee0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,11 +83,20 @@ def test_models():
def test_all(): def test_all():
"""Runs all tests.""" """Runs all tests."""
# print(test_server()) print("Running test on API server to check if its running.."
# print(test_api()) 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())
# 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: def test_api_moderation(model: str=MODEL, messages: List[dict]=None) -> dict:
"""Tests an API api_endpoint.""" """Tests an API api_endpoint."""