根据报错信息找到源码文件
根据源码查看if判断条件参数
if not scenario and prev_mode not in allowed_prev_mode and mode in types.STEP_TYPES:
not in allowed_prev_mode 才会报错,那一定要in allowed_prev_mode才可以,查看feature文件查看缺少Background,添加Background,问题解决
根据报错信息找到源码文件
根据源码查看if判断条件参数
if not scenario and prev_mode not in allowed_prev_mode and mode in types.STEP_TYPES:
not in allowed_prev_mode 才会报错,那一定要in allowed_prev_mode才可以,查看feature文件查看缺少Background,添加Background,问题解决