Fix tests (lmao)

This commit is contained in:
Game_Time 2023-08-15 10:43:24 +05:00 committed by GitHub
parent 69bc2e33de
commit d870281540
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,19 +83,19 @@ def test_models():
def test_all(): def test_all():
"""Runs all tests.""" """Runs all tests."""
print("Running test on API server to check if its running.." print("Running test on API server to check if its running..")
print(test_server()) print(test_server())
print("Running a api endpoint to see if requests can go through..." print("Running a api endpoint to see if requests can go through...")
print(test_api()) print(test_api())
print("Checking if the API works with the python library..." print("Checking if the API works with the python library...")
print(test_library()) print(test_library())
print("Checking if the moderation endpoint works...") print("Checking if the moderation endpoint works...")
print(test_library_moderation()) print(test_library_moderation())
print("Checking if all models can be GET" print("Checking if all models can be GET")
print(test_models()) 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: