mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 18:43:26 +00:00
bimtester: features, move qset test from example steps to implemented steps
This commit is contained in:
@@ -24,3 +24,6 @@ from bimtester.features.steps.aggregation import en
|
||||
|
||||
use_step_matcher("parse")
|
||||
from bimtester.features.steps.attributes_psets import en, de
|
||||
|
||||
use_step_matcher("parse")
|
||||
from bimtester.features.steps.attributes_qsets import en
|
||||
|
||||
+6
-3
@@ -1,11 +1,14 @@
|
||||
from behave import step
|
||||
|
||||
from utils import IfcFile
|
||||
# from bimtester import util
|
||||
from bimtester.ifc import IfcStore
|
||||
from bimtester.lang import _
|
||||
|
||||
|
||||
@step("all {ifc_class} elements have a {qto_name}.{quantity_name} quantity")
|
||||
# TODO: use get_psets from ifcopenshell.util.element
|
||||
@step('All "{ifc_class}" elements have a "{qto_name}.{quantity_name}" quantity')
|
||||
def step_impl(context, ifc_class, qto_name, quantity_name):
|
||||
elements = IfcFile.get().by_type(ifc_class)
|
||||
elements = IfcStore.file.by_type(ifc_class)
|
||||
for element in elements:
|
||||
is_successful = False
|
||||
if not element.IsDefinedBy:
|
||||
Reference in New Issue
Block a user