mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
deprecate non-batching api #4474
This commit is contained in:
@@ -29,7 +29,7 @@ class TestRemoveSystem(test.bootstrap.IFC4):
|
||||
def test_removing_orphaned_group_relationships(self):
|
||||
element = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcFlowTerminal")
|
||||
system = ifcopenshell.api.run("system.add_system", self.file, ifc_class="IfcSystem")
|
||||
ifcopenshell.api.run("system.assign_system", self.file, product=element, system=system)
|
||||
ifcopenshell.api.run("system.assign_system", self.file, products=[element], system=system)
|
||||
ifcopenshell.api.run("system.remove_system", self.file, system=system)
|
||||
assert not self.file.by_type("IfcRelAssignsToGroup")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user