Pytest报错信息:In test_login: indirect fixture ‘r‘ doesn‘t exist

这个错误是因为pytest参数驱动里的参数写错了,应该是一个字符串,写成了多个字符串就会报这个错误
在这里插入图片描述
改为一个字符串之后:
在这里插入图片描述
这个错误不容易发现,大家要特别注意。

猜你喜欢

转载自blog.csdn.net/simpleness_/article/details/127658177