mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
library.unassign_reference - support batching #4474
This commit is contained in:
@@ -87,4 +87,4 @@ def assign_library_reference(ifc, obj=None, reference=None):
|
||||
|
||||
|
||||
def unassign_library_reference(ifc, obj=None, reference=None):
|
||||
ifc.run("library.unassign_reference", product=ifc.get_entity(obj), reference=reference)
|
||||
ifc.run("library.unassign_reference", products=[ifc.get_entity(obj)], reference=reference)
|
||||
|
||||
@@ -121,5 +121,5 @@ class TestAssignLibraryReference:
|
||||
class TestUnassignLibraryReference:
|
||||
def test_run(self, ifc):
|
||||
ifc.get_entity("obj").should_be_called().will_return("product")
|
||||
ifc.run("library.unassign_reference", product="product", reference="reference").should_be_called()
|
||||
ifc.run("library.unassign_reference", products=["product"], reference="reference").should_be_called()
|
||||
subject.unassign_library_reference(ifc, obj="obj", reference="reference")
|
||||
|
||||
Reference in New Issue
Block a user