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,5 +1,6 @@
from behave import step
from utils import assert_schema
from utils import IfcFile
@@ -13,10 +14,9 @@ def step_impl(context, file):
@step("IFC data must use the {schema} schema")
def step_impl(context, schema):
assert IfcFile.get().schema == schema, "We expected a schema of {} but instead got {}".format(
schema, IfcFile.get().schema
)
context.schema = IfcFile.get().schema
assert_schema(schema, context.schema)
@step('The IFC file "{file}" is exempt from being provided')
def step_impl(context, file):