我正在尝试使用Behavein构建 BDD 测试环境Eclipse。每当我从import定义开始时from behave import * Eclipse抛出import警告。
given此外,when和的装饰器then被标记为undefined variables。
有谁知道为什么decorators不进口?
使用时的错误信息from behave import *
Unused in wild import: AmbiguousStep, StepRegistry, i18n, importer, json_parser, log_capture, matchers, model, names, runner, runner_util, setup_step_decorators, step_matcher, step_registry, tag_expression, textutil... others suppressed
装饰器的错误消息:
Undefined variable: given