Pytest plugin for recording and replaying serial port traffic during tests
https://pypi.org/project/pytest-reserial/