File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pycharm/teamcity/unittestpy.py", line 40, in get_test_id_with_description
test_id = test.id()
TypeError: 'str' object is not callable
原因是setUpClass定义了id和unittest定义的id冲突了,修改id为其他名称即可
@classmethod
def setUpClass(self):
self.no = '1233'
self.id=self.create(self)