def test_basic(self): c = Calendar() c = c.add( Day(date_=today, project_name="EPG Support", project_time="08:00")) c = c.add_project("EPG Support") s = ConsoleDayShower(c).show_days(today, 1) assert "EPG Support" in s assert "08:00" in s
def test_project(self): c = Calendar() c = c.add( Day(date_=today, project_name="EPG Support", project_time="08:00")) c = c.add_project("EPG Support") data = c.dump() c2 = Calendar.load(data) s = ConsoleDayShower(c2).show_days(today, 1) assert "EPG Support" in s assert "08:00" in s
def test_basic(self): c = Calendar() c = c.add( Day( args="came 9 left 16:45 lunch 0m", date_=today, project_name="Parental leave", project_time="04:00", )) c = c.add_project("Parental leave", work=False) s = ConsoleDayShower(c).show_days(today, 1) assert "Parental leave" in s assert "04:00" in s assert "07:45" in s
def project_calendar(): calendar = Calendar() return calendar.add_project("Hello")