pytest-embedded-serial
- class pytest_embedded_serial.dut.SerialDut(*args, **kwargs)
Bases:
Dut
Dut class for serial ports
- telnet
Telnet instance, applied only when jtag service is activated
- Type:
Telnet
- setup_jtag()
- class pytest_embedded_serial.serial.Serial(msg_queue: MessageQueue, port: Optional[str] = None, port_location: Optional[str] = None, baud: int = 115200, meta: Optional[Meta] = None, stop_after_init: bool = False, ports_to_occupy: List[str] = (), **kwargs)
Bases:
object
Custom serial class
- proc
process created by serial.serial_for_url()
- Type:
pyserial.Serial
Warning
make sure this Serial.__init__() run the last in MRO, it would create and start the redirect serial process
- DEFAULT_BAUDRATE = 115200
- DEFAULT_PORT_CONFIG: ClassVar[Dict[str, Any]] = {'baudrate': 115200, 'bytesize': 8, 'parity': 'N', 'rtscts': False, 'stopbits': 1, 'timeout': 0.05, 'xonxoff': False}
- close()