Closed
Description
I am going to be writing a full system test for our customer to be able to check all of our systems during configuration after unit tests pass to ensure everything is working properly. For unit testing the code, py.test works great. However, we have a PCB that provides critical information during testing and need to be able to prompt the user to perform certain tasks so that the system can check these conditions to ensure they are as expected. Here is a simple example of what I am trying to do in a test function/class:
def test_pcb_button()
print('press the button') # or something similar to print in py.test to force it to console
print('does the led turn on? [y/n]')
assert user_input() == 'y'