Update bootstrap defs for filling test

This commit is contained in:
Gorgious
2021-09-24 11:27:35 +02:00
parent 8af1b2ffa6
commit 8a2938447e
+10 -2
View File
@@ -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,
}