def test_call_cls(mocker): mocker.patch("os.system") controller = screener_controller.ScreenerController(queue=None) controller.call_cls([]) assert controller.queue == [] os.system.assert_called_once_with("cls||clear")
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_print_help(): controller = screener_controller.ScreenerController(queue=None) controller.print_help()