extracttests.py: reduce line lengths

This commit is contained in:
Daniel Marjamäki 2011-11-27 13:49:20 +01:00
parent 370018d313
commit ce2be7cbe3
1 changed files with 12 additions and 3 deletions

View File

@ -55,7 +55,10 @@ class Extract:
# assert
res = re.match('\\s+ASSERT_EQUALS\\(\\"(.*)\\"', line)
if res != None and len(code) > 10:
node = { 'testclass':testclass, 'functionName':functionName, 'code':code, 'expected':res.group(1) }
node = { 'testclass':testclass,
'functionName':functionName,
'code':code,
'expected':res.group(1) }
self.nodes.append(node)
code = ''
@ -210,8 +213,14 @@ if filename != None:
# create files for each functionName
for functionName in functionNames:
writeHtmlFile(e.nodes, functionName, htmldir + 'errors-' + functionName + '.htm', True)
writeHtmlFile(e.nodes, functionName, htmldir + 'all-' + functionName + '.htm', False)
writeHtmlFile(e.nodes,
functionName,
htmldir + 'errors-' + functionName + '.htm',
True)
writeHtmlFile(e.nodes,
functionName,
htmldir + 'all-' + functionName + '.htm',
False)
else:
for node in e.nodes: