tasks.py 文件源码

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

项目:django-brotli 作者: illagrenan 项目源码 文件源码
def coverage():
    """check code coverage quickly with the default Python"""
    run("coverage run --source {PROJECT_NAME} -m py.test".format(PROJECT_NAME=PROJECT_NAME))
    run("coverage report -m")
    run("coverage html")

    if sys.stdout.isatty():
        # Running in a real terminal
        webbrowser.open('file://' + os.path.realpath("htmlcov/index.html"), new=2)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号