2025年3月27日

使用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 老吃鸡 阅读(43) 评论(0) 推荐(0)

pytest 读取yml文件测试数据

摘要: yml文件模版: place_parent_order: &place_parent_order endpoint: /api/algo/order/place-parent-order method: POST stop_parent_order: &stop_parent_order endpo 阅读全文

posted @ 2025-03-27 13:54 老吃鸡 阅读(14) 评论(0) 推荐(0)

导航