2019-10-15 11:58:26 +11:00
|
|
|
from behave.model import Scenario
|
2020-11-01 19:22:49 +07:00
|
|
|
|
|
|
|
|
|
2019-10-15 11:58:26 +11:00
|
|
|
def before_all(context):
|
|
|
|
|
userdata = context.config.userdata
|
2020-12-21 10:28:03 +01:00
|
|
|
context.ifcbasename = userdata["ifcbasename"]
|
2020-12-18 16:12:11 +01:00
|
|
|
context.localedir = userdata.get("localedir")
|
2020-12-21 10:28:03 +01:00
|
|
|
|
|
|
|
|
# do not break after a failed scenario
|
|
|
|
|
# https://community.osarch.org/discussion/comment/3328/#Comment_3328
|
2020-12-18 11:22:14 +01:00
|
|
|
continue_after_failed = userdata.getbool("runner.continue_after_failed_step", True)
|
2019-10-15 11:58:26 +11:00
|
|
|
Scenario.continue_after_failed_step = continue_after_failed
|