Thu, 26 Aug 2021 22:04:33 +0300
removed some alias tests that aren't mandated by the official header specification
73 | 1 | from testsuite import problem_type, report_problem |
2 | import linetypes | |
3 | ||
4 | @problem_type( | |
5 | 'alias-not-prefixed-with-equals', | |
6 | severity = 'hold', | |
7 | message = 'description of alias files must start with a "="', | |
8 | ) | |
9 | def alias_tests(model): | |
10 | if model.header.valid and 'Alias' in model.header.qualifiers: | |
11 | if not model.header.description.startswith('='): | |
12 | yield report_problem( | |
13 | 'alias-not-prefixed-with-equals', | |
14 | bad_object = model.body[0], | |
15 | ) | |
16 | ||
17 | manifest = { | |
18 | 'tests': [ | |
19 | alias_tests | |
20 | ], | |
21 | } |