bimtester: improve submodule handling for step translation

This commit is contained in:
Bernd Hahnebach
2020-12-16 08:33:39 +01:00
committed by Dion Moult
parent f00040c7d9
commit 90f225e93b
4 changed files with 32 additions and 13 deletions
@@ -1,10 +1,13 @@
from behave import step
# https://behave.readthedocs.io/en/latest/api.html#step-macro-calling-steps-from-other-steps
from utils import assert_schema
@step("Les données IFC doivent utiliser le schéma {schema}")
def step_impl(context, schema):
context.execute_steps(
"* IFC data must use the {aschema} schema".format(aschema=schema)
)
try:
context.execute_steps(
"* IFC data must use the {schema} schema".format(schema=schema)
)
except Exception:
assert_schema(schema, context.schema)