mirror of
https://github.com/OMGeeky/flucto-heisskleber.git
synced 2026-01-06 19:49:43 +01:00
10 lines
310 B
Python
10 lines
310 B
Python
from heisskleber.serial import SerialConf
|
|
|
|
|
|
def test_serial_config() -> None:
|
|
config_dict = {"port": "/test/serial", "baudrate": 5000, "parity": "N", "stopbits": 1}
|
|
|
|
config = SerialConf.from_dict(config_dict)
|
|
|
|
assert config == SerialConf(port="/test/serial", baudrate=5000, parity="N", stopbits=1)
|