# HG changeset patch # User Teemu Piippo # Date 1630004673 -10800 # Node ID 5e347a96869a0e230489c5420ba4647c637ae7e7 # Parent e4401bf4a387e3e131d937c063e06d5855cfe0b3 removed some alias tests that aren't mandated by the official header specification diff -r e4401bf4a387 -r 5e347a96869a tests/aliases.py --- a/tests/aliases.py Thu Aug 26 19:54:15 2021 +0300 +++ b/tests/aliases.py Thu Aug 26 22:04:33 2021 +0300 @@ -6,16 +6,6 @@ severity = 'hold', message = 'description of alias files must start with a "="', ) -@problem_type( - 'alias-with-polygon', - severity = 'hold', - message = 'alias files must only contain subfile references', -) -@problem_type( - 'alias-bad-colour', - severity = 'hold', - message = 'alias files must only use colour 16', -) def alias_tests(model): if model.header.valid and 'Alias' in model.header.qualifiers: if not model.header.description.startswith('='): @@ -23,17 +13,6 @@ 'alias-not-prefixed-with-equals', bad_object = model.body[0], ) - for element in model.body: - if isinstance(element, linetypes.BasePolygon): - yield report_problem( - 'alias-with-polygon', - bad_object = element - ) - elif hasattr(element, 'colour') and element.colour.index != 16: - yield report_problem( - 'alias-bad-colour', - bad_object = element - ) manifest = { 'tests': [ diff -r e4401bf4a387 -r 5e347a96869a unittests/alias-bad.test --- a/unittests/alias-bad.test Thu Aug 26 19:54:15 2021 +0300 +++ b/unittests/alias-bad.test Thu Aug 26 22:04:33 2021 +0300 @@ -1,5 +1,5 @@ -0 Testing: alias-bad-colour alias-not-prefixed-with-equals alias-with-polygon -0 Expecting: alias-bad-colour:8 alias-not-prefixed-with-equals:1 alias-with-polygon:9 +0 Testing: alias-not-prefixed-with-equals +0 Expecting: alias-not-prefixed-with-equals:1 0 Test part 0 Name: 1234.dat 0 Author: Me diff -r e4401bf4a387 -r 5e347a96869a unittests/alias-ok.test --- a/unittests/alias-ok.test Thu Aug 26 19:54:15 2021 +0300 +++ b/unittests/alias-ok.test Thu Aug 26 22:04:33 2021 +0300 @@ -1,4 +1,4 @@ -0 Testing: alias-bad-colour alias-not-prefixed-with-equals alias-with-polygon +0 Testing: alias-not-prefixed-with-equals 0 Expecting: none 0 =Test part 0 Name: 1234.dat