示例#1
0
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()
示例#2
0
 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))
示例#3
0
 def test_monday(self):
     day = "2015-09-28"
     monday = dateutil.parser.parse(day)
     self.assertEqual(monday, main.week_start_date(monday))