记录pycharm退出pytest模式的方法

1.无效修改:

         上方工具栏‘Run’--‘Edit configuration’--弹窗左侧的‘Python test’栏--对应文件下点‘-’--确认

2.有效修改:

         (1)Windows系统:File--settings--python integrated tools--Default test runner修改为‘Unittest’--点击窗口右下方‘Apply’--点击‘OK’

         (2)Mac系统:右下角点击显示当前运行环境的位置--InterpreterSettings--弹窗左侧‘Tools’栏--python integrated tools--Default test runner修改为‘Unittest’--点击窗口右下方‘Apply’--点击‘OK’

          注意一定要点击‘Apply修改才会生效。’

更多推荐