test.py 文件源码

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

项目:tts-server 作者: langsiji 项目源码 文件源码
def test_all_voice_fmt(self):
        for fmt in options.fmtlist:
            if len(fmt): continue
            response = self.fetch("/tts?text=hello&type=filename&fmt=%s"%fmt)
            status = escape.json_decode(response.body)
            self.assertEqual(response.code, 200)
            self.assertTrue(status["success"])
            # ??????????????
            self.assertEqual(os.path.splitext(status['data']['name'][1]), fmt)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号