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'))
评论列表
文章目录