mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
bimtester: code formating
This commit is contained in:
@@ -19,6 +19,7 @@ def step_impl(context, schema):
|
|||||||
except:
|
except:
|
||||||
assert False, f"The schema {schema} could not be loaded"
|
assert False, f"The schema {schema} could not be loaded"
|
||||||
|
|
||||||
|
|
||||||
@step('The IFC file "{file}" must be provided')
|
@step('The IFC file "{file}" must be provided')
|
||||||
def step_impl(context, file):
|
def step_impl(context, file):
|
||||||
try:
|
try:
|
||||||
@@ -26,6 +27,7 @@ def step_impl(context, file):
|
|||||||
except:
|
except:
|
||||||
assert False, f"The file {file} could not be loaded"
|
assert False, f"The file {file} could not be loaded"
|
||||||
|
|
||||||
|
|
||||||
@given('The IFC file has been provided through an argument')
|
@given('The IFC file has been provided through an argument')
|
||||||
def step_impl(context):
|
def step_impl(context):
|
||||||
try:
|
try:
|
||||||
@@ -33,6 +35,7 @@ def step_impl(context):
|
|||||||
except:
|
except:
|
||||||
assert False, f"The IFC {context.config.userdata.get('ifcfile')} file could not be loaded"
|
assert False, f"The IFC {context.config.userdata.get('ifcfile')} file could not be loaded"
|
||||||
|
|
||||||
|
|
||||||
@given('A file path has been provided through an argument')
|
@given('A file path has been provided through an argument')
|
||||||
def step_impl(context):
|
def step_impl(context):
|
||||||
try:
|
try:
|
||||||
@@ -40,6 +43,7 @@ def step_impl(context):
|
|||||||
except:
|
except:
|
||||||
assert False, f"The path {context.config.userdata.get('path')} could not be loaded"
|
assert False, f"The path {context.config.userdata.get('path')} could not be loaded"
|
||||||
|
|
||||||
|
|
||||||
@step("IFC data must use the {schema} schema")
|
@step("IFC data must use the {schema} schema")
|
||||||
def step_impl(context, schema):
|
def step_impl(context, schema):
|
||||||
switch_locale(context.localedir, the_lang)
|
switch_locale(context.localedir, the_lang)
|
||||||
|
|||||||
Reference in New Issue
Block a user