Test: Added calendar test wiht full details and color

This commit is contained in:
Paul Beckingham 2015-10-28 17:29:27 -04:00
parent 0250145895
commit acb83130fa

View file

@ -66,6 +66,12 @@ class TestCalendarCommandLine(TestCase):
code, out, err = self.t("calendar rc.calendar.details:full rc.calendar.details.report:list") code, out, err = self.t("calendar rc.calendar.details:full rc.calendar.details.report:list")
self.assertIn("task_with_due_date", out) self.assertIn("task_with_due_date", out)
def test_basic_command_details_color(self):
"""Verify 'calendar rc.calendar.details:full rc.calendar.details.report:list rc._forcecolor:on' does not fail"""
self.t("add task_with_due_date due:tomorrow")
code, out, err = self.t("calendar rc.calendar.details:full rc.calendar.details.report:list rc._forcecolor:on")
self.assertIn("task_with_due_date", out)
def test_basic_command_holidays(self): def test_basic_command_holidays(self):
"""Verify 'calendar rc.calendar.holidays:full' does not fail""" """Verify 'calendar rc.calendar.holidays:full' does not fail"""
code, out, err = self.t("calendar rc.calendar.holidays:full") code, out, err = self.t("calendar rc.calendar.holidays:full")