mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
bimtester: small code improvements
This commit is contained in:
@@ -3,6 +3,10 @@ from behave.model import Scenario
|
|||||||
|
|
||||||
def before_all(context):
|
def before_all(context):
|
||||||
userdata = context.config.userdata
|
userdata = context.config.userdata
|
||||||
|
context.ifcbasename = userdata["ifcbasename"]
|
||||||
context.localedir = userdata.get("localedir")
|
context.localedir = userdata.get("localedir")
|
||||||
|
|
||||||
|
# do not break after a failed scenario
|
||||||
|
# https://community.osarch.org/discussion/comment/3328/#Comment_3328
|
||||||
continue_after_failed = userdata.getbool("runner.continue_after_failed_step", True)
|
continue_after_failed = userdata.getbool("runner.continue_after_failed_step", True)
|
||||||
Scenario.continue_after_failed_step = continue_after_failed
|
Scenario.continue_after_failed_step = continue_after_failed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import gettext
|
import gettext # noqa
|
||||||
import os
|
from behave import given
|
||||||
from behave import step, given
|
from behave import step
|
||||||
|
|
||||||
from ifcdata_methods import assert_schema
|
from ifcdata_methods import assert_schema
|
||||||
from utils import IfcFile
|
from utils import IfcFile
|
||||||
|
|||||||
Reference in New Issue
Block a user