mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 01:10:01 +00:00
Fixing core tests
This commit is contained in:
@@ -442,7 +442,7 @@ class TestUpdateDrawingName:
|
|||||||
drawing.get_drawing_group("drawing").should_be_called().will_return("group")
|
drawing.get_drawing_group("drawing").should_be_called().will_return("group")
|
||||||
drawing.get_name("group").should_be_called().will_return("name")
|
drawing.get_name("group").should_be_called().will_return("name")
|
||||||
drawing.get_drawing_collection("drawing").should_be_called().will_return("collection")
|
drawing.get_drawing_collection("drawing").should_be_called().will_return("collection")
|
||||||
drawing.set_drawing_collection_name("group", "collection").should_be_called()
|
drawing.set_drawing_collection_name("drawing", "collection").should_be_called()
|
||||||
|
|
||||||
drawing.get_drawing_document("drawing").should_be_called().will_return("reference")
|
drawing.get_drawing_document("drawing").should_be_called().will_return("reference")
|
||||||
drawing.get_reference_document("reference").should_be_called().will_return("information")
|
drawing.get_reference_document("reference").should_be_called().will_return("information")
|
||||||
@@ -459,7 +459,7 @@ class TestUpdateDrawingName:
|
|||||||
drawing.get_name("group").should_be_called().will_return("oldname")
|
drawing.get_name("group").should_be_called().will_return("oldname")
|
||||||
ifc.run("attribute.edit_attributes", product="group", attributes={"Name": "name"}).should_be_called()
|
ifc.run("attribute.edit_attributes", product="group", attributes={"Name": "name"}).should_be_called()
|
||||||
drawing.get_drawing_collection("drawing").should_be_called().will_return("collection")
|
drawing.get_drawing_collection("drawing").should_be_called().will_return("collection")
|
||||||
drawing.set_drawing_collection_name("group", "collection").should_be_called()
|
drawing.set_drawing_collection_name("drawing", "collection").should_be_called()
|
||||||
|
|
||||||
drawing.get_drawing_document("drawing").should_be_called().will_return("reference")
|
drawing.get_drawing_document("drawing").should_be_called().will_return("reference")
|
||||||
drawing.get_reference_document("reference").should_be_called().will_return("information")
|
drawing.get_reference_document("reference").should_be_called().will_return("information")
|
||||||
|
|||||||
@@ -161,4 +161,4 @@ class TestSelectByMaterial:
|
|||||||
def test_run(self, material, spatial):
|
def test_run(self, material, spatial):
|
||||||
material.get_elements_by_material("material").should_be_called().will_return("elements")
|
material.get_elements_by_material("material").should_be_called().will_return("elements")
|
||||||
spatial.select_products("elements").should_be_called()
|
spatial.select_products("elements").should_be_called()
|
||||||
subject.select_by_material(material, material="material")
|
subject.select_by_material(material, spatial, material="material")
|
||||||
|
|||||||
@@ -218,4 +218,4 @@ class TestSelectByStyle:
|
|||||||
def test_run(self, style, spatial):
|
def test_run(self, style, spatial):
|
||||||
style.get_elements_by_style("style").should_be_called().will_return("elements")
|
style.get_elements_by_style("style").should_be_called().will_return("elements")
|
||||||
spatial.select_products("elements").should_be_called()
|
spatial.select_products("elements").should_be_called()
|
||||||
subject.select_by_style(style, style="style")
|
subject.select_by_style(style, spatial, style="style")
|
||||||
|
|||||||
Reference in New Issue
Block a user