don't check the category of '~'-files

Mon, 24 Jun 2019 17:34:30 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Mon, 24 Jun 2019 17:34:30 +0300
changeset 93
ffe05d369412
parent 92
b8d72909d593
child 94
109fb7cf658f

don't check the category of '~'-files

tests/category.py file | annotate | diff | comparison | revisions
--- a/tests/category.py	Mon Jun 24 17:31:47 2019 +0300
+++ b/tests/category.py	Mon Jun 24 17:34:30 2019 +0300
@@ -18,7 +18,8 @@
     )
 )
 def category_test(model):
-    if model.header.valid:
+    # Only test the category if the description does not start with a '~'
+    if model.header.valid and not model.header.description.startswith('~'):
         categories = library_standards['categories']
         illegal_categories_in_description = [
             category_name.lower()

mercurial