def after_scenario(context, scenario):
if scenario.status == Status.failed and context.status == "negative":
scenario.status = Status.passed
if scenario.status == Status.passed and context.status == "negative":
scenario.status = Status.failed
Я получаю HOOK-ERROR в after_scenario: AttributeError: не могу установить атрибут