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():
"""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("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("Checking if the API works with the python library..."
print("Checking if the API works with the python library...")
print(test_library())
print("Checking if the moderation endpoint works...")
print(test_library_moderation())
print("Checking if all models can be GET"
print("Checking if all models can be GET")
print(test_models())
def test_api_moderation(model: str=MODEL, messages: List[dict]=None) -> dict: