willder 最近的时间轴更新
willder

willder

V2EX 第 302754 号会员,加入于 2018-03-23 13:41:45 +08:00
willder 最近回复了
2019-01-31 11:27:40 +08:00
回复了 90928yao 创建的主题 Python pytest 参数化的一个问题,求大佬指点
自己设置一个全局变量应该可以做到
2019-01-31 11:20:36 +08:00
回复了 90928yao 创建的主题 Python pytest 参数化的一个问题,求大佬指点
我试着更新了 metafunc 这个对象,比如在 test_equals 中更新一下,
TestClass.params.update(test_zerodivision=[dict(a=1, b=2), ]),但没有成功,看来在 pytest_generate_tests 中做不到根据前面 case 的结果动态设置后面 case 的参数
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2943 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 13:22 · PVG 21:22 · LAX 06:22 · JFK 09:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.