mirror of
https://github.com/NovaOSS/nova-api.git
synced 2024-11-25 20:33:58 +01:00
updating tests to add tests back since they were removed for some reason?
This commit is contained in:
parent
6ecc5f59ce
commit
8e70c25ee0
|
@ -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."""
|
||||||
|
|
Loading…
Reference in a new issue