导入所有不起作用

时间:2013-08-20 09:06:39

标签: python eclipse import bdd

我正在尝试使用Behave中的Eclipse构建BDD测试环境。每当我从import定义开始,from behave import * Eclipse会引发import警告。

此外,givenwhenthen的装饰器标记为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

1 个答案:

答案 0 :(得分:1)

首先:

import explicit

然后:

from behave import given, when, then, step

如果它没有添加注释,那应该可行。)

相关问题