test_odin_init.py 文件源码

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

项目:Odin 作者: JamesBrofos 项目源码 文件源码
def test_odin_init(self):
        # Create a test file.
        path = "./test_portfolio_id/"
        main = path + IOFiles.main_file.value
        handlers = path + IOFiles.handlers_file.value
        settings = path + IOFiles.settings_file.value
        strategy = path + IOFiles.strategy_file.value
        fund = path + IOFiles.fund_file.value
        odin_init(path)
        # Assert that all of the requisite files exist.
        self.assertTrue(os.path.isdir(path))
        self.assertTrue(os.path.isfile(main))
        self.assertTrue(os.path.isfile(handlers))
        self.assertTrue(os.path.isfile(settings))
        self.assertTrue(os.path.isfile(strategy))
        self.assertTrue(os.path.isfile(fund))
        shutil.rmtree(path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号