mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 04:04:00 +00:00
system.unassign_system - support batching #4474
This commit is contained in:
@@ -59,7 +59,7 @@ def assign_system(ifc, system=None, product=None):
|
||||
|
||||
|
||||
def unassign_system(ifc, system=None, product=None):
|
||||
ifc.run("system.unassign_system", product=product, system=system)
|
||||
ifc.run("system.unassign_system", products=[product], system=system)
|
||||
|
||||
|
||||
def select_system_products(system_tool, system=None):
|
||||
|
||||
@@ -80,7 +80,7 @@ class TestAssignSystem:
|
||||
|
||||
class TestUnassignSystem:
|
||||
def test_run(self, ifc):
|
||||
ifc.run("system.unassign_system", product="product", system="system").should_be_called()
|
||||
ifc.run("system.unassign_system", products=["product"], system="system").should_be_called()
|
||||
subject.unassign_system(ifc, system="system", product="product")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user