test_transcripts.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:edx-video-pipeline 作者: edx 项目源码 文件源码
def assert_uploaded_transcript_on_s3(self, connection):
        """
        Verify sjson data uploaded to s3
        """
        key = Key(connection.get_bucket(CONFIG_DATA['aws_video_transcripts_bucket']))
        key.key = '{directory}{uuid}.sjson'.format(
            directory=CONFIG_DATA['aws_video_transcripts_prefix'], uuid=self.uuid_hex
        )
        sjson_transcript = json.loads(key.get_contents_as_string())
        self.assertEqual(sjson_transcript, TRANSCRIPT_SJSON_DATA)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号