Enable Unknown section tests to pass
The current tests check 1.2 version files with unknown sections.
@@ -705,12 +705,19 @@ class SectionParser(object):
self.func = self.metadata
self.section_name2 = "Version"
else:
- raise KeyError("Unknown section name {}".format(title.upper()))
+ # raise KeyError("Unknown section name {}".format(title.upper()))
+ print("Unknown section name {}".format(title.upper()))
+ self.func = self.metadata
+ self.section_name2 = title
+ self.default_order = 'value:descr'
+ self.orders = {}
self.version = version
self.section_name = title
defs = defaults.ORDER_DEFINITIONS
+
+ if self.section_name2 in defs[self.version]:
section_orders = defs[self.version][self.section_name2]
self.default_order = section_orders[0] #
self.orders = {}
