Skip to content

Commit f0c8e3a

Browse files
committed
Fix tests
1 parent d5e418a commit f0c8e3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ async def client(self):
3838
async def local_client(self):
3939
"""Fixture providing an OverkizClient configured for a local (developer) server."""
4040
return OverkizClient(
41-
server=create_local_server_config("gateway-1234-5678-1243.local:8443"),
42-
credentials=LocalTokenCredentials("token"),
41+
server=create_local_server_config(host="gateway-1234-5678-1243.local:8443"),
42+
credentials=LocalTokenCredentials(token="token"),
4343
)
4444

4545
@pytest.mark.asyncio
4646
async def test_get_api_type_cloud(self, client: OverkizClient):
4747
"""Verify that a cloud-configured client reports APIType.CLOUD."""
48-
assert client.api_type == APIType.CLOUD
48+
assert client.server_config.type == APIType.CLOUD
4949

5050
@pytest.mark.asyncio
5151
async def test_get_api_type_local(self, local_client: OverkizClient):
5252
"""Verify that a local-configured client reports APIType.LOCAL."""
53-
assert local_client.api_type == APIType.LOCAL
53+
assert local_client.server_config.type == APIType.LOCAL
5454

5555
@pytest.mark.asyncio
5656
async def test_get_devices_basic(self, client: OverkizClient):

0 commit comments

Comments
 (0)