mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Store applicability in IfcTester JSON results
This commit is contained in:
@@ -163,6 +163,7 @@ class Json(Reporter):
|
|||||||
return self.results
|
return self.results
|
||||||
|
|
||||||
def report_specification(self, specification):
|
def report_specification(self, specification):
|
||||||
|
applicability = [a.to_string("applicability") for a in specification.applicability]
|
||||||
requirements = []
|
requirements = []
|
||||||
for requirement in specification.requirements:
|
for requirement in specification.requirements:
|
||||||
requirements.append(
|
requirements.append(
|
||||||
@@ -182,6 +183,7 @@ class Json(Reporter):
|
|||||||
"total": total,
|
"total": total,
|
||||||
"percentage": percentage,
|
"percentage": percentage,
|
||||||
"required": specification.minOccurs != 0,
|
"required": specification.minOccurs != 0,
|
||||||
|
"applicability": applicability,
|
||||||
"requirements": requirements,
|
"requirements": requirements,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user