tests/aliases.py

changeset 152
5e347a96869a
parent 73
9664583cd1c9
--- 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': [

mercurial