pytest-fixture录播课源码,脚本中注释fixture,函数调用也未传入fixture,为什么执行结果有fixture操作?

问题

下载pytest-fixture录播课源码,脚本中注释fixture,函数调用也未传入fixture,为什么执行结果有fixture操作?

源码地址: pytest_video/testfixture · master · VIPStudent / pytest_video · GitLab (ceshiren.com)

报错信息

环境

windows pycharm

同学,可以好好看看pytest对应的录播哈

懂了,后边自动生效的录播课讲了,conftest.py 里面的 fixture 设置 autouse=True 自动生效,这样即便测试用例不引用 fixture ,也会自动调用

:+1: