From 8af1b2ffa6859d20a954ca0fc83e74cfb8e673c7 Mon Sep 17 00:00:00 2001 From: Gorgious Date: Fri, 24 Sep 2021 11:25:15 +0200 Subject: [PATCH] Test Remove filling --- .../test/bim/module/void/test_operator.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/blenderbim/test/bim/module/void/test_operator.py b/src/blenderbim/test/bim/module/void/test_operator.py index 6ab8c4d356..9366eedfe7 100644 --- a/src/blenderbim/test/bim/module/void/test_operator.py +++ b/src/blenderbim/test/bim/module/void/test_operator.py @@ -135,3 +135,24 @@ class TestAddFilling(test.bim.bootstrap.NewFile): And the object "IfcDoor/Cube" is an "IfcDoor" And the void "IfcOpeningElement/Cube" is filled by "Cube" """ + + +class TestRemoveFilling(test.bim.bootstrap.NewFile): + @test.bim.bootstrap.scenario + def test_adding_a_filling(self): + return """ + Given an empty IFC project + Given I add a cube + When the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_class" to "IfcOpeningElement" + And I press "bim.assign_class" + And I add a cube + And the object "Cube" is selected + And I set "scene.BIMRootProperties.ifc_class" to "IfcDoor" + And I press "bim.assign_class" + And I press "bim.add_filling(opening='IfcOpeningElement/Cube', obj='IfcDoor/Cube')" + And I press "bim.remove_filling(obj='IfcDoor/Cube')" + Then the object "IfcOpeningElement/Cube" is an "IfcOpeningElement" + And the object "IfcDoor/Cube" is an "IfcDoor" + And the void "IfcOpeningElement/Cube" is not filled by "Cube" + """