tests/headertest.py

changeset 127
97de6058109e
parent 105
43c367c8895b
equal deleted inserted replaced
126:16dae12ac0f0 127:97de6058109e
65 yield report_problem( 65 yield report_problem(
66 'unofficial-part', 66 'unofficial-part',
67 bad_object = model.find_first_header_object('part type') 67 bad_object = model.find_first_header_object('part type')
68 ) 68 )
69 69
70 @problem_type('primitive-ccw', 70 @problem_type('primitive-non-ccw',
71 severity = 'hold', 71 severity = 'hold',
72 message = 'primitives must have CCW winding', 72 message = 'primitives must have CCW winding',
73 ) 73 )
74 @problem_type('no-bfc-line', 74 @problem_type('no-bfc-line',
75 severity = 'hold', 75 severity = 'hold',
83 ) 83 )
84 elif model.header.valid \ 84 elif model.header.valid \
85 and model.header.filetype.endswith('Primitive') \ 85 and model.header.filetype.endswith('Primitive') \
86 and model.header.bfc != 'CERTIFY CCW': 86 and model.header.bfc != 'CERTIFY CCW':
87 yield report_problem( 87 yield report_problem(
88 'primitive-bfc-ccw', 88 'primitive-non-ccw',
89 bad_object = model.find_first_header_object('bfc'), 89 bad_object = model.find_first_header_object('bfc'),
90 ) 90 )
91 91
92 @problem_type('keywords-for-nonparts', 92 @problem_type('keywords-for-nonparts',
93 severity = 'warning', 93 severity = 'warning',

mercurial