diff options
author | zhihui wu <wu.zhihui1@zte.com.cn> | 2017-01-11 01:16:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-01-11 01:16:55 +0000 |
commit | 5999f4ede4694a7fbe14177f7d4a07341137e300 (patch) | |
tree | 7f28cd74afb9ee0223424cfbfc7c95d10436a16c /tests/unit/runner/plan_test.py | |
parent | 5a93fcd8dcf3ac350b5a207912d9ce62783c1ab6 (diff) | |
parent | decad5f7fdb212c4f78fc31f00e591eaba104450 (diff) |
Merge "Add module skeletons"
Diffstat (limited to 'tests/unit/runner/plan_test.py')
-rw-r--r-- | tests/unit/runner/plan_test.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/runner/plan_test.py b/tests/unit/runner/plan_test.py index d783e5e9..7b3611d1 100644 --- a/tests/unit/runner/plan_test.py +++ b/tests/unit/runner/plan_test.py @@ -9,12 +9,12 @@ import pytest -from qtip.base.benchmark import Property +from qtip.base.constant import PropName from qtip.runner.plan import Plan def test_init(plan): - assert plan.name == 'verification' + assert plan.name == 'fake plan' with pytest.raises(TypeError) as excinfo: Plan() @@ -26,13 +26,13 @@ def test_list_all(benchmarks_root): plan_list = Plan.list_all(paths=[benchmarks_root]) assert len(list(plan_list)) is 1 for desc in plan_list: - assert Property.NAME in desc - assert Property.CONTENT in desc - assert Property.ABSPATH in desc - assert Property.ABSPATH is not None + assert PropName.NAME in desc + assert PropName.CONTENT in desc + assert PropName.ABSPATH in desc + assert PropName.ABSPATH is not None def test_content(plan): - content = plan.content() - assert Property.TITLE in content - assert Property.DESCRIPTION in content + content = plan.content + assert PropName.NAME in content + assert PropName.DESCRIPTION in content |