I'm using Python to interface with some devices, mainly through serial ports. However, when I'm not at work and want to make modifications, I can't test the code because the devices aren't connected to my home computer.
I'm wondering if there's a way to send dummy values through the serial port commands without causing error messages that stop the application. I've considered using if statements, but they can make the code difficult to read later on.
Any suggestion ?
Thanks !