I have a console program written in Python. It asks the user questions using the command:
some_input = input(\'Answer the question:\', ...)
Since I need the input() call to pause and check my hardware status LEDs, I had to deal with the situation without mocking. I used the -s flag.
python -m pytest -s test_LEDs.py
The -s flag essentially means: shortcut for --capture=no.