mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 18:23:57 +01:00
Fix tests (lmao)
This commit is contained in:
parent
69bc2e33de
commit
d870281540
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue