test_override.py 文件源码

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

项目:armada 作者: att-comdev 项目源码 文件源码
def test_find_manifest_document_valid(self):
        expected = "{}/templates/override-{}-expected.yaml".format(
            self.basepath, '02')

        with open(self.base_manifest) as f, open(expected) as e:
            doc_path = ['chart', 'blog-1']
            doc_obj = list(yaml.safe_load_all(f.read()))
            ovr = Override(doc_obj).find_manifest_document(doc_path)
            expected_doc = list(yaml.safe_load_all(e.read()))[0]

            self.assertEqual(ovr, expected_doc)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号