def test_menu_config_select_module_exit_selection_no_colors(self, mock_side_effect_function):
"""Test drawing and exiting the menu when the terminal doesn't support colors."""
curses.initscr()
curses.ungetch("\n")
curses.ungetch(curses.KEY_RIGHT)
self.assertTrue(self.menu())
self.assertTrue(mock_side_effect_function.called)
评论列表
文章目录