class TestEndtoEnd(unittest.TestCase): def setUp(self): self.WS = WorkerSetup() if os.path.exists(self.WS.instance_yaml): self.WS.run() self.settings = self.WS.settings_dict self.encode_profile = 'desktop_mp4' self.veda_id = 'XXXXXXXX2016-V00TEST' self.jobid = 'xx4xx' self.VW = VedaWorker(veda_id=self.veda_id, encode_profile=self.encode_profile, jobid=self.jobid) def test_intake(self): if not os.path.exists(self.WS.instance_yaml): self.assertTrue(True) return None """ copied from __init__ """ self.VW.VideoObject = Video(veda_id=self.VW.veda_id) self.VW.VideoObject.activate() self.assertTrue(self.VW.VideoObject.valid) self.VW.settings = self.settings self.VW._ENG_INTAKE() self.assertTrue(self.VW.VideoObject.valid) self.assertTrue( os.path.exists(os.path.join(self.VW.workdir, self.VW.source_file))) self.assertTrue(self.VW.VideoObject.valid) # self._UPDATE_API() # self._GENERATE_ENCODE() # self._EXECUTE_ENCODE() # self._VALIDATE_ENCODE() # if self.encoded is True: # self._DELIVER_FILE() # if self.endpoint_url is not None: # """ # Integrate with main # """ # final_name = self.output_file # celery_task_fire.deliverable_route.apply_async( # (final_name, ), # queue='transcode_stat' # ) # """ # Clean up workdir # """ def tearDown(self): pass
def setUp(self): self.WS = WorkerSetup() if os.path.exists(self.WS.instance_yaml): self.WS.run() self.settings = self.WS.settings_dict self.encode_profile = 'desktop_mp4' self.veda_id = 'XXXXXXXX2016-V00TEST' self.jobid = 'xx4xx' self.VW = VedaWorker(veda_id=self.veda_id, encode_profile=self.encode_profile, jobid=self.jobid)
class TestIntake(unittest.TestCase): def setUp(self): self.WS = WorkerSetup() if os.path.exists(self.WS.instance_yaml): self.WS.run() self.settings = self.WS.settings_dict self.encode_profile = 'desktop_mp4' self.veda_id = 'XXXXXXXX2016-V00TEST' self.jobid = 'xx4xx' self.VW = VedaWorker( veda_id=self.veda_id, encode_profile=self.encode_profile, jobid=self.jobid ) def test_intake(self): if not os.path.exists(self.WS.instance_yaml): self.assertTrue(True) return None """ copied from __init__ """ self.VW.VideoObject = Video( veda_id=self.VW.veda_id ) self.VW.VideoObject.activate() self.assertTrue(self.VW.VideoObject.valid) self.VW.settings = self.settings self.VW._ENG_INTAKE() print self.VW.VideoObject self.assertTrue(self.VW.VideoObject.valid) self.assertTrue( os.path.exists( os.path.join( self.VW.workdir, self.VW.source_file ) ) ) self.assertTrue(self.VW.VideoObject.valid) def tearDown(self): pass
def setUp(self): self.WS = WorkerSetup() if os.path.exists(self.WS.instance_yaml): self.WS.run() self.settings = self.WS.settings_dict self.encode_profile = 'desktop_mp4' self.veda_id = 'XXXXXXXX2016-V00TEST' self.jobid = 'xx4xx' self.VW = VedaWorker( veda_id=self.veda_id, encode_profile=self.encode_profile, jobid=self.jobid )
class TestIntake(unittest.TestCase): def setUp(self): self.WS = WorkerSetup() if os.path.exists(self.WS.instance_yaml): self.WS.run() self.settings = self.WS.settings_dict self.encode_profile = 'desktop_mp4' self.veda_id = 'XXXXXXXX2016-V00TEST' self.jobid = 'xx4xx' self.VW = VedaWorker(veda_id=self.veda_id, encode_profile=self.encode_profile, jobid=self.jobid) def test_intake(self): if not os.path.exists(self.WS.instance_yaml): self.assertTrue(True) return None """ copied from __init__ """ self.VW.VideoObject = Video(veda_id=self.VW.veda_id) self.VW.VideoObject.activate() self.assertTrue(self.VW.VideoObject.valid) self.VW.settings = self.settings self.VW._ENG_INTAKE() print self.VW.VideoObject self.assertTrue(self.VW.VideoObject.valid) self.assertTrue( os.path.exists(os.path.join(self.VW.workdir, self.VW.source_file))) self.assertTrue(self.VW.VideoObject.valid) def tearDown(self): pass