bimtester: steps, add element class attributes test

This commit is contained in:
Bernd Hahnebach
2020-12-21 17:01:28 +01:00
parent 2a6efaaaa4
commit edd6e74813
2 changed files with 51 additions and 0 deletions
@@ -1,5 +1,6 @@
from behave import step
from attributes_eleclasses_methods import all_element_attribs_have_a_value
from attributes_eleclasses_methods import no_element_class_ele
from utils import IfcFile
@@ -10,6 +11,12 @@ def step_impl(context, ifc_class, reason):
no_element_class_ele(context, ifc_class, reason)
@step('all {ifc_class} elements class attributes have a value')
def step_impl(context, ifc_class):
switch_locale(context.localedir, "en")
all_element_attribs_have_a_value(context, ifc_class)
@step('all {ifc_class} elements have a name matching the pattern "{pattern}"')
def step_impl(context, ifc_class, pattern):
import re