fix broken search test after 410fff6

This commit is contained in:
Andrej730
2024-07-31 12:31:44 +05:00
parent 6a9e76c2af
commit c86a4c88a9
2 changed files with 4 additions and 1 deletions
@@ -175,6 +175,9 @@ class Search(Operator):
props = context.scene.CsvProperties
elif self.property_group == "BIMSearchProperties":
props = context.scene.BIMSearchProperties
else:
raise Exception(f"bim.search - unexpected property group name '{self.property_group}'.")
results = ifcopenshell.util.selector.filter_elements(
tool.Ifc.get(), tool.Search.export_filter_query(props.filter_groups)
)
@@ -12,5 +12,5 @@ Scenario: Select all walls
And I set "scene.BIMSearchProperties.facet" to "entity"
And I press "bim.add_filter(index=0, type='entity', module='search')"
And I set "scene.BIMSearchProperties.filter_groups[0].filters[0].value" to "IfcWall"
When I press "bim.search"
When I press "bim.search(property_group='BIMSearchProperties')"
Then the object "IfcWall/Cube" is selected