Thu, 26 Aug 2021 22:04:33 +0300
removed some alias tests that aren't mandated by the official header specification
--- 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': [
--- 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
--- 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