def setUp(self):
     BaseTestCase.setUp(self)
     self.contest = self.create_contest(submissions_open=True)
     self.view = SubmitURLView()
     self.view.dispatch(self.factory.get('/'),
                        pk=self.contest.pk,
                        slug=self.contest.slug)
示例#2
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.contest = self.create_contest(submissions_open=True)
     self.view = SubmitURLView()
     self.view.dispatch(self.factory.get('/'),
                        pk=self.contest.pk,
                        slug=self.contest.slug)
 def setUp(self):
     BaseTestCase.setUp(self)
     self.contest = self.create_contest(submissions_open=True)
     self.view = SubmitVideoView(form_class=SubmitVideoFormBase,
                                 form_fields=())
     self.view.dispatch(self.factory.get('/'),
                        pk=self.contest.pk,
                        slug=self.contest.slug)
示例#4
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.contest = self.create_contest(submissions_open=True)
     self.view = SubmitVideoView(form_class=SubmitVideoFormBase,
                                 form_fields=())
     self.view.dispatch(self.factory.get('/'),
                        pk=self.contest.pk,
                        slug=self.contest.slug)
示例#5
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.contest = self.create_contest(submissions_open=False)
     self.request = self.factory.get("/")
 def setUp(self):
     BaseTestCase.setUp(self)
     self.contest = self.create_contest(submissions_open=False)
     self.request = self.factory.get('/')