def test_plain(self): todo.CONFIG["PLAIN"] = True self.addm_todo_with_pri(self.num) lines = todo.format_lines() self.assert_plain(lines, dict) lines = todo.format_lines(True) self.assert_plain(lines, list)
def rev_list(): """List items in reverse order so for long lists, the most important stuff won't scroll off the top of the screen.""" formatted = format_lines() lines = [] for p in PRIORITIES[::-1]: lines.extend(formatted[p]) if lines: print(concat(lines)[:-1]) print_x_of_y(lines, lines)
def test_formatted_remove_pri(self): todo.CONFIG["NO_PRI"] = True self.addm_todo_with_pri(self.num) lines = todo.format_lines() self.assert_nopri(lines)
def test_color_only(self): self.addm_todo_with_pri(self.num) lines = todo.format_lines(True) self.assert_color_only(lines)
def test_formatted(self): self.addm_todo_with_pri(self.num) lines = todo.format_lines() self.assert_formatted(lines)