mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 14:07:43 +00:00
Purge IfcWindow/DoorStyle/IfcTypeProduct #4137
This commit is contained in:
@@ -118,8 +118,9 @@ class TestGetModelTypes(NewFile):
|
||||
def test_run(self):
|
||||
ifc = ifcopenshell.file()
|
||||
tool.Ifc.set(ifc)
|
||||
wall_type = ifcopenshell.api.run("root.create_entity", ifc, ifc_class="IfcWallType")
|
||||
assert subject.get_model_types() == [wall_type]
|
||||
type_classes = ("IfcWallType", "IfcDoorStyle", "IfcWindowStyle", "IfcTypeProduct")
|
||||
types = [ifcopenshell.api.run("root.create_entity", ifc, ifc_class=c) for c in type_classes]
|
||||
assert set(subject.get_model_types()) == set(types)
|
||||
|
||||
|
||||
class TestGetObjectData(NewFile):
|
||||
|
||||
Reference in New Issue
Block a user