示例#1
0
 def setUp(self):
     self.judge = create_user('bob')
     project = create_project('A project')
     challenge = create_challenge('A challenge', project)
     self.phase = create_phase('A phase', challenge)
     self.user = create_user('alex')
     self.submission = create_submission('A submission', self.user,
                                         self.phase)
     self.phase_award = Award.objects.create(phase=self.phase,
                                             amount=10000)
示例#2
0
 def setUp(self):
     """Actions to be performed at the beginning of each test"""
     # setup ignite challenge
     self.project = create_project(settings.IGNITE_PROJECT_SLUG)
     self.challenge = create_challenge(settings.IGNITE_CHALLENGE_SLUG, self.project)
     now = datetime.utcnow()
     past = now - relativedelta(days=30)
     future = now + relativedelta(days=30)
     # create the Ideation and Development phases
     idea_data = {"order": 1, "start_date": past, "end_date": now}
     self.ideation = create_phase(settings.IGNITE_IDEATION_NAME, self.challenge, idea_data)
     dev_data = {"order": 2, "start_date": now, "end_date": future}
     self.development = create_phase(settings.IGNITE_DEVELOPMENT_NAME, self.challenge, dev_data)
 def setUp(self):
     """Actions to be performed at the beginning of each test"""
     # setup ignite challenge
     self.project = create_project(settings.IGNITE_PROJECT_SLUG)
     self.challenge = create_challenge(settings.IGNITE_CHALLENGE_SLUG,
                                       self.project)
     now = datetime.utcnow()
     past = now - relativedelta(days=30)
     future = now + relativedelta(days=30)
     # create the Ideation and Development phases
     idea_data = {'order': 1, 'start_date': past, 'end_date': now}
     self.ideation = create_phase(settings.IGNITE_IDEATION_NAME,
                                  self.challenge, idea_data)
     dev_data = {'order': 2, 'start_date': now, 'end_date': future}
     self.development = create_phase(settings.IGNITE_DEVELOPMENT_NAME,
                                     self.challenge, dev_data)