# HG changeset patch # User Santeri Piippo # Date 1517407118 -7200 # Node ID 7a7c237a17175811897231cc685e89d937f63355 # Parent 464f5e8d57ab76192fcf1e265ebf41f226d93cbd removed old code diff -r 464f5e8d57ab -r 7a7c237a1717 tests/quadrilaterals.py --- a/tests/quadrilaterals.py Wed Jan 31 15:19:31 2018 +0200 +++ b/tests/quadrilaterals.py Wed Jan 31 15:58:38 2018 +0200 @@ -58,10 +58,6 @@ if cross_product(b - a, c - a).length() < 1e-5: yield error(element, 'collinearity-error') -def hair_score(smallest_angle): - from math import log10 - return max(0, -log10(smallest_angle)) - def hair_test(model): for element in model.body: if hasattr(element, 'geometry') and len(element.geometry.vertices) >= 3: diff -r 464f5e8d57ab -r 7a7c237a1717 testsuite.py --- 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( - '
  • {model_name}:{line_number}:' - '{problem_type}: {message}
    {ldraw_code}
  • ', - 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()