예제 #1
0
 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
예제 #2
0
 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):
     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
예제 #4
0
 def must_run(self, date):
     cal = rc.get_calendar()
     for c in cal:
         if date == c['merge']:
             return True
     return False
예제 #5
0
def get_release_calendar():
    return rc.get_calendar()
예제 #6
0
 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)
예제 #8
0
def get_release_calendar():
    return rc.get_calendar()