tests/misc.py

changeset 66
e28b249b4422
parent 64
1c0884f5506e
child 68
c19dd0d3248e
equal deleted inserted replaced
64:1c0884f5506e 66:e28b249b4422
76 yield report_problem( 76 yield report_problem(
77 'physical-colour-part', 77 'physical-colour-part',
78 bad_object = model.body[model.header.first_occurrence['part type']], 78 bad_object = model.body[model.header.first_occurrence['part type']],
79 ) 79 )
80 80
81 @problem_type('official-part', 81 @problem_type('unofficial-part',
82 severity = 'hold', 82 severity = 'hold',
83 message = 'new parts must be unofficial', 83 message = 'new parts must be unofficial',
84 ) 84 )
85 def unofficiality_test(model): 85 def unofficiality_test(model):
86 if model.header.valid and not model.header.filetype.startswith('Unofficial_'): 86 if model.header.valid and not model.header.filetype.startswith('Unofficial_'):

mercurial