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