testsuite.py

changeset 45
7a7c237a1717
parent 42
be50d98d3668
--- a/testsuite.py	Wed Jan 31 15:19:31 2018 +0200
+++ b/testsuite.py	Wed Jan 31 15:58:38 2018 +0200
@@ -102,22 +102,6 @@
         message = message(**problem['args'])
     return message
 
-def format_report_html(report, model, test_suite):
-    messages = []
-    for problem in report['problems']:
-        ldraw_code = model.body[problem['body-index']].textual_representation()
-        message = str.format(
-            '<li class="{problem_type}">{model_name}:{line_number}:'
-            '{problem_type}: {message}<br />{ldraw_code}</li>',
-            model_name = model.name,
-            line_number = problem['line-number'],
-            problem_type = problem['type'],
-            message = problem_text(problem, test_suite),
-            ldraw_code = ldraw_code,
-        )
-        messages.append(message)
-    return '\n'.join(messages)
-
 def format_report(report, model, test_suite):
     import colorama
     colorama.init()

mercurial