def debug(config_id): program.load_cache() config = models.OlderConfig.get(config_id) monday = program.week_start_date() config.warnings = [] monday = datetime.combine(monday, datetime.min.time()) program.run(config, monday) config.save()
def test_sunday(self): monday = dateutil.parser.parse("2015-09-21") day = dateutil.parser.parse("2015-09-27") self.assertEqual(monday, main.week_start_date(day))
def test_monday(self): day = "2015-09-28" monday = dateutil.parser.parse(day) self.assertEqual(monday, main.week_start_date(monday))