mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +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")
|
use_step_matcher("parse")
|
||||||
from bimtester.features.steps.attributes_psets import en, de
|
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 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):
|
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:
|
for element in elements:
|
||||||
is_successful = False
|
is_successful = False
|
||||||
if not element.IsDefinedBy:
|
if not element.IsDefinedBy:
|
||||||
Reference in New Issue
Block a user