In testLogin: indirect fixture *** doesn‘t exist

转载于:In testLogin: indirect fixture *** doesn‘t exist

它应以逗号分隔的字符串形式编写:
你得到的是indirect fixture因为pytest无法解压缩给定的参数,argvalues因为它的argnames参数错误。您需要确保所有参数都写为一个字符串

@pytest.mark.parametrize(“inBody, resData”, module)

错误示范 :

@pytest.mark.parametrize(“inBody” ,“resData”, module)

————————————————
版权声明:本文为CSDN博主「吃鱼的狗」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_47973311/article/details/113882642

原文地址:https://www.cnblogs.com/hi3254014978/p/15586026.html