bimtester: step, prepare attributes eleclasses for translation

This commit is contained in:
Bernd Hahnebach
2020-12-21 16:57:38 +01:00
parent dafdd06b2e
commit 2a6efaaaa4
2 changed files with 44 additions and 1 deletions
@@ -1,11 +1,13 @@
from behave import step
from attributes_eleclasses_methods import no_element_class_ele
from utils import IfcFile
@step("there are no {ifc_class} elements because {reason}")
def step_impl(context, ifc_class, reason):
assert len(IfcFile.get().by_type(ifc_class)) == 0
switch_locale(context.localedir, "en")
no_element_class_ele(context, ifc_class, reason)
@step('all {ifc_class} elements have a name matching the pattern "{pattern}"')