Browse code

check subdir is int

Hanno Böck authored on19/12/2019 16:39:07
Showing1 changed files
... ...
@@ -46,6 +46,9 @@ class TestJsonLint(unittest.TestCase):
46 46
                             or item['vuln'].startswith("https://"),
47 47
                             msg="%s: Invalid vuln %s" %
48 48
                             (item['name'], item['vuln']))
49
+            for det in item['detection']:
50
+                self.assertTrue(type(det['subdir']) == int,
51
+                                msg="%s: subdir not int" % item['name'])
49 52
 
50 53
 
51 54
 if __name__ == '__main__':