def before_scenario(context, scenario): config = {} if scenario.status != 'skipped' and 'notesting' in scenario.tags: config['SUPERDESK_TESTING'] = False setup(context, config) context.headers = [ ('Content-Type', 'application/json'), ('Origin', 'localhost') ]
def before_all(context): setup(context) os.environ['BEHAVE_TESTING'] = '1'