pytest9-fixture作为函数参数时,ctrl+鼠标右键无法查看fixture源码如何解决

现象:

fixture写在conftest.py中,测试用例写在测试文件中,在测试文件中ctrl+鼠标右键无法查看fixture源码

解决办法:pycharm中设置项目默认测试执行器为pytest

之后在测试文件中ctrl+鼠标右键即可查看fixture文件源码

猜你喜欢

转载自www.cnblogs.com/wang-mengmeng/p/11768970.html