PyCharm中no tests were found
Run后显示0条,特别奇怪。我在其他编辑器Geanys上运行是OK的。查找半天才发现要把unittest.main()换成以下代码就ok了
unittest.main
或者
if __name__ == '__main__':
unittest
PyCharm中no tests were found
Run后显示0条,特别奇怪。我在其他编辑器Geanys上运行是OK的。查找半天才发现要把unittest.main()换成以下代码就ok了
unittest.main
或者
if __name__ == '__main__':
unittest