def test_print_help(): controller = screener_controller.ScreenerController(queue=None) controller.print_help()
def test_switch(an_input, expected_queue): controller = screener_controller.ScreenerController(queue=None) queue = controller.switch(an_input=an_input) assert queue == expected_queue
def test_call_func_expect_queue(expected_queue, func, queue): controller = screener_controller.ScreenerController(queue=queue) result = getattr(controller, func)([]) assert result is None assert controller.queue == expected_queue
def call_screen(self, _): """Process screen command""" self.queue = screener_controller.ScreenerController(self.queue).menu()