摘要: 在使用pytest时遇到这样一个问题,对一个方法的测试,pytest xx.py执行后却提示"no tests ran in 0.09 seconds",如下: 查阅资料得知: 将类名改为Test开头后,测试正常。 本文转自https://blog.csdn.net/yaoliuwei1426/ar 阅读全文