mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 13:33:41 +00:00
bimtester: improve submodule handling for step translation
This commit is contained in:
committed by
Dion Moult
parent
f00040c7d9
commit
90f225e93b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user