get_info_2 to support excluding identifier

This commit is contained in:
Andrej730
2024-10-03 16:51:08 +05:00
parent 770e25dbc2
commit 8ae951d27a
3 changed files with 28 additions and 20 deletions
@@ -58,3 +58,12 @@ class TestGetInfo2(test.bootstrap.IFC4):
{"Coordinates": (3.0,), "id": 5, "type": "IfcCartesianPoint"},
),
)
def test_exclude_identifier(self):
brep = self.file.create_entity("IfcFacetedBrep")
shell = self.file.create_entity("IfcClosedShell")
brep.Outer = shell
assert brep.get_info_2(recursive=True, include_identifier=False) == {
"Outer": {"CfsFaces": None, "type": "IfcClosedShell"},
"type": "IfcFacetedBrep",
}