mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 11:20:21 +00:00
remove bim.unlink_material #4843
This commit is contained in:
@@ -59,15 +59,6 @@ Scenario: Remove material set
|
||||
When I press "bim.remove_material_set(material={material})"
|
||||
Then nothing happens
|
||||
|
||||
Scenario: Unlink material
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
And the object "Cube" is selected
|
||||
And I add a material
|
||||
And I press "bim.add_material(obj='Material')"
|
||||
When I press "bim.unlink_material"
|
||||
Then the material "Material" is not an IFC material
|
||||
|
||||
Scenario: Assign material - single material
|
||||
Given an empty IFC project
|
||||
And I add a cube
|
||||
|
||||
@@ -20,12 +20,6 @@ import blenderbim.core.material as subject
|
||||
from test.core.bootstrap import ifc, material, style, spatial
|
||||
|
||||
|
||||
class TestUnlinkMaterial:
|
||||
def test_run(self, ifc):
|
||||
ifc.unlink(obj="obj").should_be_called()
|
||||
subject.unlink_material(ifc, obj="obj")
|
||||
|
||||
|
||||
class TestAddMaterial:
|
||||
def test_add_a_default_material(self, ifc, material, style):
|
||||
material.add_default_material_object("name").should_be_called().will_return("obj")
|
||||
|
||||
Reference in New Issue
Block a user