pytest fixtures 夹具的应用

1.在teardown_method中获取参数化的参数,打印带参数化的函数名 pytest_me.py: import pytest param_data = [ { 'ip': '172.31.3.80', 'unit': 1, }, { 'ip': '172.31.3.80', 'unit':
posted @ 2022-10-10 10:28  小柴i  阅读(42)  评论(0编辑  收藏  举报