找到生成函数注释的代码如下:
def generate_report_test(self, rows, cid, tid, n, t, o, e):
# e.g. 'pt1.1', 'ft1.1', etc
has_output = bool(o or e)
# ID修改点为下划线,支持Bootstrap折叠展开特效 - Findyou
tid = (n == 0 and 'p' or 'f') + 't%s%s' % (cid + 1, tid + 1)
name = t.id().split('.')[-1]
if self.verbosity > 1:
doc = t.shortDescription() or ""
else:
doc = ""
1、将if self.verbosity > 1:改成if self.verbosity >= 1:
修改前的报告截图:
修改后的报告截图: