mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
fix geometry core tests after fccf56d5f
This commit is contained in:
@@ -412,6 +412,7 @@ class Geometry:
|
||||
def should_use_presentation_style_assignment(cls): pass
|
||||
def unresolve_type_representation(cls, representation, element): pass
|
||||
def delete_opening_object_placement(cls, opening): pass
|
||||
def switch_from_representation(cls, obj, representation): pass
|
||||
|
||||
|
||||
@interface
|
||||
|
||||
@@ -321,9 +321,9 @@ class TestRemoveRepresentation:
|
||||
geometry.has_data_users("data").should_be_called().will_return(True)
|
||||
geometry.get_elements_of_type("type").should_be_called().will_return(["element"])
|
||||
ifc.get_object("element").should_be_called().will_return("obj")
|
||||
geometry.recreate_object_with_data("obj").should_be_called()
|
||||
geometry.switch_from_representation("obj", "representation").should_be_called()
|
||||
ifc.get_object("type").should_be_called().will_return("type_obj")
|
||||
geometry.recreate_object_with_data("type_obj").should_be_called()
|
||||
geometry.switch_from_representation("type_obj", "representation").should_be_called()
|
||||
ifc.run("geometry.unassign_representation", product="type", representation="representation").should_be_called()
|
||||
ifc.run("geometry.remove_representation", representation="representation").should_be_called()
|
||||
geometry.delete_data("data").should_be_called()
|
||||
@@ -344,7 +344,7 @@ class TestRemoveRepresentation:
|
||||
geometry.get_element_type("element").should_be_called().will_return(None)
|
||||
geometry.get_representation_data("representation").should_be_called().will_return("data")
|
||||
geometry.has_data_users("data").should_be_called().will_return(True)
|
||||
geometry.recreate_object_with_data("obj").should_be_called()
|
||||
geometry.switch_from_representation("obj", "representation").should_be_called()
|
||||
ifc.run(
|
||||
"geometry.unassign_representation", product="element", representation="representation"
|
||||
).should_be_called()
|
||||
@@ -359,7 +359,7 @@ class TestRemoveRepresentation:
|
||||
geometry.is_type_product("element").should_be_called().will_return(False)
|
||||
geometry.get_representation_data("representation").should_be_called().will_return("data")
|
||||
geometry.has_data_users("data").should_be_called().will_return(True)
|
||||
geometry.recreate_object_with_data("obj").should_be_called()
|
||||
geometry.switch_from_representation("obj", "representation").should_be_called()
|
||||
ifc.run(
|
||||
"geometry.unassign_representation", product="element", representation="representation"
|
||||
).should_be_called()
|
||||
|
||||
Reference in New Issue
Block a user