owon_spe_ctrl/tests/test_find_devices.py

14 lines
319 B
Python
Raw Normal View History

2024-08-11 21:17:46 +02:00
import logging
log = logging.getLogger(__name__)
def test_find_devices():
from owon_spe_ctrl import find_devices
devs = find_devices()
log.info(f'found {len(devs)} devices:')
for name,ident in devs.items():
log.info(f'{name}: {ident if ident else "<unknown>"}')
assert len(devs) > 0