test_cmt_cqueue.py 文件源码

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

项目:cmt 作者: chadmv 项目源码 文件源码
def test_export_queue(self):
        queue = core.ComponentQueue()
        comp1 = Component(sphere_name='sphere1')
        queue.add(comp1)
        comp2 = Component(sphere_name='sphere2')
        queue.add(comp2)
        file_path = self.get_temp_filename('queue.json')
        queue.export(file_path)
        queue = core.load_queue(file_path)
        queue.execute()
        self.assertTrue(cmds.objExists('sphere1'))
        self.assertTrue(cmds.objExists('sphere2'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号