aggregate.unassign_object - support batching #4474

This commit is contained in:
Andrej730
2024-04-08 17:38:41 +05:00
parent cd11d2de27
commit f14bf8557a
10 changed files with 51 additions and 38 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class TestUnassignObject:
ifc.get_entity("related_obj").should_be_called().will_return("element")
aggregate.get_container("element").should_be_called().will_return("container")
ifc.run("spatial.assign_container", products=["element"], relating_structure="container").should_be_called()
ifc.run("aggregate.unassign_object", product="element").should_be_called().will_return("rel")
ifc.run("aggregate.unassign_object", products=["element"]).should_be_called()
collector.assign("relating_obj").should_be_called()
collector.assign("related_obj").should_be_called()
subject.unassign_object(ifc, aggregate, collector, relating_obj="relating_obj", related_obj="related_obj")