test(server): server get and apps

This commit is contained in:
izzy lyseggen
2021-01-21 11:32:46 +00:00
parent b3e9f425c0
commit 76da3cacfb
+16
View File
@@ -0,0 +1,16 @@
import pytest
from speckle.api.models import ServerInfo
class TestServer:
def test_server_get(self, client):
server = client.server.get()
assert isinstance(server, ServerInfo)
def test_apps(self, client):
apps = client.server.apps()
assert isinstance(apps, list)
assert len(apps) >= 1
assert any(app["name"] == "Speckle Web Manager" for app in apps)