mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Update bootstrap defs for filling test
This commit is contained in:
@@ -269,7 +269,14 @@ def the_void_name_is_filled_by_filling(name, filling):
|
||||
element = ifc.by_id(the_object_name_exists(name).BIMObjectProperties.ifc_definition_id)
|
||||
if any(rel.RelatedBuildingElement.Name == filling for rel in element.HasFillings):
|
||||
return True
|
||||
assert False, f"Filling was not found"
|
||||
assert False, f"No filling found"
|
||||
|
||||
|
||||
def the_void_name_is_not_filled_by_filling(name, filling):
|
||||
ifc = IfcStore.get_file()
|
||||
element = ifc.by_id(the_object_name_exists(name).BIMObjectProperties.ifc_definition_id)
|
||||
if any(rel.RelatedBuildingElement.Name == filling for rel in element.HasFillings):
|
||||
assert False, f"A filling was found"
|
||||
|
||||
|
||||
def the_object_name_should_display_as_mode(name, mode):
|
||||
@@ -325,7 +332,8 @@ definitions = {
|
||||
'the object "(.*)" should display as "(.*)"': the_object_name_should_display_as_mode,
|
||||
'the object "(.*)" has "([0-9]+)" vertices': the_object_name_has_number_vertices,
|
||||
'the object "(.*)" is at "(.*)"': the_object_name_is_at_location,
|
||||
'the object "(.*)" is filled by "(.*)"': the_void_name_is_filled_by_filling,
|
||||
'the void "(.*)" is filled by "(.*)"': the_void_name_is_filled_by_filling,
|
||||
'the void "(.*)" is not filled by "(.*)"': the_void_name_is_not_filled_by_filling,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user