import yaml
def before_all(context):
context.userdata = yaml.load(open('./features/data/test.yml', 'r'))
print(context.userdata['row1']) #this works
now steps file
@then('print the context data')
def step_impl(context):print(context.userdata['row1']) #this does not do anythingAny help ?