在使用pytest时遇到这样一个问题,对一个方法的测试,pytest  xx.py执行后却提示"no tests ran in 0.09 seconds",如下:

Pytest使用随笔_1_"no tests ran"

 

 查阅资料得知:

Pytest使用随笔_1_"no tests ran"

 

 将类名改为Test开头后,测试正常。

 

本文转自https://blog.csdn.net/yaoliuwei1426/article/details/82142882

 

相关文章:

  • 2021-05-22
  • 2021-11-26
  • 2021-07-26
  • 2021-09-04
  • 2021-04-21
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2021-04-27
  • 2022-12-23
  • 2021-12-09
  • 2021-08-31
  • 2022-02-26
相关资源
相似解决方案