Skip to content

Commit

Permalink
[feat/modelmanager] simple python test for models
Browse files Browse the repository at this point in the history
  • Loading branch information
toschoo committed Feb 19, 2024
1 parent 3357c44 commit 3ebba17
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/test_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

from edgen import Edgen, APIConnectionError
from edgen.resources.misc import Version
import pytest
import subprocess

client = Edgen()

def test_models():
try:
models = client.models.list()
except APIConnectionError:
pytest.fail("No connection. Is edgen running?")

assert(type(models) is list)

if __name__ == "__main__":
test_models()

0 comments on commit 3ebba17

Please sign in to comment.