文件 -> 设置 -> ->工具 -> python 集成工具 -> 测试 默认测试运行程序由pytest 选择为 Unittest
File -> Settings -> Tools -> Python Integrated Tools -> Testing
在这里插入图片描述
点击右下角的应用即可

更多推荐