PyCharm 运行.py文件提示:no tests were found的解决方法
1、创建的.py文件名不能以test方法开头;
2、
导入 from unittest import TestCase
#将unittest.main() 换成这样
if __name__ == '__main__':
TestCase
1、创建的.py文件名不能以test方法开头;
2、
导入 from unittest import TestCase
#将unittest.main() 换成这样
if __name__ == '__main__':
TestCase