tasks.py 文件源码

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

项目:django-include 作者: chrisseto 项目源码 文件源码
def test(ctx, watch=False, last_failing=False):
    """Run the tests.

    Note: --watch requires pytest-xdist to be installed.
    """
    import pytest
    flake(ctx)
    args = []
    if watch:
        args.append('-f')
    if last_failing:
        args.append('--lf')
    retcode = pytest.main(args)
    sys.exit(retcode)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号