How to get past "Press any key to continue..." in Python unittest? -


how can write unittest press key @ right time can test check method below , doesn't wait forever key press.

class myproject():     def __init__(self):         self.info = ""      def check(self):         # goes online fetch data , saves self.info         input("press key continue...")      def main_function(self):         # method main task 


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -