Пример #1
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)
Пример #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)
Пример #3
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)
Пример #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("/")
Пример #6
0
 def setUp(self):
     BaseTestCase.setUp(self)
     self.contest = self.create_contest(submissions_open=False)
     self.request = self.factory.get('/')