def setUp(self):
        self.video = make_video()
        users = User.objects.all()
        (self.u1, self.u2) = users[:2]
        self.anon = User.get_anonymous()

        v = self.video
        self.en1 = pipeline.add_subtitles(v,
                                          'en',
                                          title="title 1",
                                          description="desc 1",
                                          subtitles=[(100, 200, "sub 1")],
                                          author=self.u1)
        self.en2 = pipeline.add_subtitles(v,
                                          'en',
                                          title="title 2",
                                          description="desc 2",
                                          subtitles=[(100, 200, "sub 2")],
                                          author=self.u2)
        self.en3 = pipeline.add_subtitles(v,
                                          'en',
                                          title="title 3",
                                          description="desc 3",
                                          subtitles=[(100, 200, "sub 3")],
                                          author=self.u1)
Exemple #2
0
    def setUp(self):
        self.video = make_video()

        self.sl = make_sl(self.video, 'en')

        users = User.objects.all()

        u1 = users[0]
        u2 = users[1]
        u3 = users[2]

        self.c1 = Collaborator(subtitle_language=self.sl, user=u1)
        self.c2 = Collaborator(subtitle_language=self.sl, user=u2)
        self.c3 = Collaborator(subtitle_language=self.sl, user=u3)

        self.c1.save()
        self.c2.save()
        self.c3.save()
 def setUp(self):
     self.video = make_video()
     self.video2 = make_video_2()
 def setUp(self):
     self.video = make_video()
     users = User.objects.all()
     (self.u1, self.u2) = users[:2]
     self.anon = User.get_anonymous()
Exemple #5
0
 def setUp(self):
     self.video = make_video()
     self.en = make_sl(self.video, 'en')
     self.fr = make_sl(self.video, 'fr')
     self.de = make_sl(self.video, 'de')
     self.user = User.objects.get_or_create(username='******')[0]
Exemple #6
0
 def setUp(self):
     self.video = make_video()
     self.sl = make_sl(self.video, 'en')
Exemple #7
0
 def setUp(self):
     video = make_video()
     sset = make_subtitle_set('en', 10)
     self.sv = add_subtitles(video, 'en', subtitles=sset)
Exemple #8
0
 def setUp(self):
     self.video = make_video()
     self.sl_en = make_sl(self.video, 'en')
     self.sl_fr = make_sl(self.video, 'fr')
     self.sl_de = make_sl(self.video, 'de')