IDS doc generator now also generates a sample IDS file

This commit is contained in:
Dion Moult
2022-09-03 10:48:46 +10:00
parent fdfaf54698
commit 0668eadc36
4 changed files with 32 additions and 6 deletions
+2 -2
View File
@@ -1161,7 +1161,7 @@ class TestPartOf:
group = ifcopenshell.api.run("group.add_group", ifc)
facet = PartOf(entity="IfcGroup")
run("", facet=facet, inst=element, expected=False)
ifcopenshell.api.run("group.assign_group", ifc, product=[element], group=group)
ifcopenshell.api.run("group.assign_group", ifc, products=[element], group=group)
run("", facet=facet, inst=element, expected=True)
# An IfcGroup can be passed by subtypes
@@ -1169,7 +1169,7 @@ class TestPartOf:
element = ifcopenshell.api.run("root.create_entity", ifc, ifc_class="IfcElementAssembly")
group = ifc.createIfcInventory()
facet = PartOf(entity="IfcGroup")
ifcopenshell.api.run("group.assign_group", ifc, product=[element], group=group)
ifcopenshell.api.run("group.assign_group", ifc, products=[element], group=group)
run("", facet=facet, inst=element, expected=True)
# An IfcSystem only checks that a system is assigned without any other logic