mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-23 07:12:37 +00:00
bimtester: steps, add element class attributes test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user