def must_run(self, date): for c in get_calendar(): # if freeze is the 2019-03-11, then the tool must run the day after # until 2019-03-2018 (a week after) freeze = c['soft freeze'] if freeze <= date <= freeze + relativedelta(days=6): return True return False
def must_run(self, date): for c in get_calendar(): # run from the soft freeze date until merge day freeze = c["soft freeze"] merge = c["merge"] if freeze <= date < merge: return True return False
def must_run(self, date): cal = rc.get_calendar() for c in cal: if date == c['merge']: return True return False
def get_release_calendar(): return rc.get_calendar()
def must_run(self, date): cal = rc.get_calendar() for c in cal: if date == c["merge"]: return True return False
def test_rc(self): cal = rc.get_calendar() self.assertIsNotNone(cal)