setup.py 文件源码

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

项目:Nashpy 作者: drvinceknight 项目源码 文件源码
def test_suite():
    """Discover all tests in the tests dir"""
    test_loader = unittest.TestLoader()
    # Read in unit tests
    test_suite = test_loader.discover('tests')

    # Doctest all md and rst files
    for root, dirs, files in os.walk("."):
        for f in files:
            if f.endswith(".rst") or f.endswith(".md"):
                test_suite.addTests(
                     doctest.DocFileSuite(os.path.join(root, f),
                                          optionflags=doctest.ELLIPSIS))

    return test_suite
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号