Test edit object placement. See #1711

This commit is contained in:
Dion Moult
2021-10-04 13:14:38 +11:00
parent cd965fd4a9
commit 6e6cbcef6f
16 changed files with 192 additions and 49 deletions
@@ -0,0 +1,9 @@
import blenderbim.core.geometry as subject
from test.core.bootstrap import ifc, surveyor
class TestEditObjectPlacement:
def test_run(self, ifc, surveyor):
ifc.get_entity("obj").should_be_called().will_return("element")
surveyor.get_absolute_matrix("obj").should_be_called().will_return("matrix")
ifc.run("geometry.edit_object_placement", product="element", matrix="matrix").should_be_called()
subject.edit_object_placement(ifc, surveyor, obj="obj")