Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
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
Ejemplo n.º 4
0
 def must_run(self, date):
     cal = rc.get_calendar()
     for c in cal:
         if date == c['merge']:
             return True
     return False
Ejemplo n.º 5
0
def get_release_calendar():
    return rc.get_calendar()
Ejemplo n.º 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)
Ejemplo n.º 8
0
def get_release_calendar():
    return rc.get_calendar()