conftest.py 文件源码

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

项目:topotests 作者: FRRouting 项目源码 文件源码
def pytest_runtest_call():
    """
    This function must be run after setup_module(), it does standarized post
    setup routines. It is only being used for the 'topology-only' option.
    """
    # pylint: disable=E1101
    # Trust me, 'config' exists.
    if pytest.config.getoption('--topology-only'):
        tgen = get_topogen()
        if tgen is not None:
            # Allow user to play with the setup.
            tgen.mininet_cli()

        pytest.exit('the topology executed successfully')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号