def test_basic(self): c = Calendar() c = c.add(Day("came 9 left 15 lunch 30m", today)) c, _ = c.undo() c, date_ = c.redo() assert "30" in ConsoleDayShower(c).show_days(today, 1) assert date_ == today
def test_return_none_instead_of_date_if_nothing_to_redo(self): c = Calendar() c, date_ = c.redo() assert date_ is None