test_importerror.py 文件源码

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

项目:pytest-ui 作者: martinsmid 项目源码 文件源码
def pytest_runtest_makereport(self, item, call):
        print 'pytest_runtest_makereport %s %s' % (item, call)

    # @pytest.hookimpl(hookwrapper=True)
    # def pytest_runtest_makereport(self, item, call):
    #     # logger.debug('pytest_runtest_makereport %s %s', item, call)
    #     outcome = yield
    #     # logger.debug('outcome %s', outcome)
    #     result = outcome.get_result()
    #     logger.debug('result %s', result)
    #     logger.debug('result.capstdout %s', result.capstdout)
    #     logger.debug('result.capstderr %s', result.capstderr)

    #     if call.when == 'call':
    #         self.runner.set_test_result(self.runner.get_test_id(item), call)

    #     logger.debug('pytest_runtest_makereport %s %s', item, call)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号