run.py 文件源码

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

项目:stestr 作者: mtreinish 项目源码 文件源码
def _find_failing(repo):
    run = repo.get_failing()
    case = run.get_test()
    ids = []

    def gather_errors(test_dict):
        if test_dict['status'] == 'fail':
            ids.append(test_dict['id'])

    result = testtools.StreamToDict(gather_errors)
    result.startTestRun()
    try:
        case.run(result)
    finally:
        result.stopTestRun()
    return ids
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号