OpenIris/PythonTools/tests/test_hardware.py
2023-04-08 20:27:03 +02:00

12 lines
315 B
Python

import pytest
from ..OpenIrisClient import OpenIrisClient
@pytest.mark.asyncio
async def test_ping(device_url):
"""tests whether the device will respond with a ping"""
async with OpenIrisClient(device_url) as openiris_client:
result = await openiris_client.ping()
assert result.status == 200