OpenIris/PythonTools/tests/test_hardware.py

13 lines
349 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 as openiris_client:
result = await openiris_client.ping()
assert result.status == 200
assert result.json() == {"message": "ok"}