当前位置: 代码迷 >> 综合 >> pytest Error running ‘tests‘: Can‘t run remote python interpreter: Can‘t get remote credentials for
  详细解决方案

pytest Error running ‘tests‘: Can‘t run remote python interpreter: Can‘t get remote credentials for

热度:27   发布时间:2023-12-15 17:21:23.0

pycharm 退出/删除测试模式 (Pytest Doctest)~

Pycharm -> File -> settings -> tools -> python integrated tools -> Testing -> 将default test runner改为Unittests

然后运行时点击:Run -> Run... -> 点击选择你要运行的文件进行运行

感谢:Milo Chen @ https://stackoverflow.com/questions/35848064/disable-pytest-in-pycharm

 

 

pycharm  win10 ubuntu linux远程开发环境配置

 

报错:

Error running 'tests': Can't run remote python interpreter: Can't get remote credentials for deployment server

 

解决:

1,文件名一般开头不要为test,否则pycharm可能自动启动notestset模式

2,出现这个报错,可能是因为你调整了远程和本地的文件夹映射关系,解决办法:file -> settings -> project:xxx -> 删除当前的python interpreter, 重新一步步配置远程的python interpreter。选择new environment

  相关解决方案