使用pytest钩子,替换测试数据,自动命名ids
摘要:注意,以下内容放在conftest.py文件中 0、动态替换测试数据: # 替换数据 def pytest_collection_modifyitems(config, items): value_list = set() g_price = {} for item in items: data_g
阅读全文
posted @ 2025-03-27 14:08
posted @ 2025-03-27 14:08
posted @ 2025-03-27 13:54
posted @ 2021-06-19 17:07
posted @ 2021-03-11 10:59
posted @ 2021-03-11 10:43
posted @ 2020-07-23 14:45