aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/loader/plan_test.py
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-01-25 01:41:31 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-25 01:41:31 +0000
commitf5c23e82e2f59af3ed59a8ad46c119f141cefe7b (patch)
tree4ce4dc99d3ac91cf905a1524e7f12ddb5f557c01 /tests/unit/loader/plan_test.py
parent3a08c5442a70dec7f628b7e9b11a9a9384767918 (diff)
parentb659a9296223b7f63a89bedbc0dad281117de936 (diff)
Merge "Formalize constants for property names"
Diffstat (limited to 'tests/unit/loader/plan_test.py')
-rw-r--r--tests/unit/loader/plan_test.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/unit/loader/plan_test.py b/tests/unit/loader/plan_test.py
index 6aab5e8a..b57bcfb5 100644
--- a/tests/unit/loader/plan_test.py
+++ b/tests/unit/loader/plan_test.py
@@ -9,7 +9,7 @@
import pytest
-from qtip.base.constant import PropName
+from qtip.base.constant import PlanProp
from qtip.loader.plan import Plan, QPISpec
@@ -29,15 +29,15 @@ 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 PropName.NAME in desc
- assert PropName.CONTENT in desc
- assert PropName.ABSPATH in desc
- assert PropName.ABSPATH is not None
+ assert PlanProp.NAME in desc
+ assert PlanProp.CONTENT in desc
+ assert PlanProp.ABSPATH in desc
+ assert PlanProp.ABSPATH is not None
def test_content(plan):
content = plan.content
- assert PropName.NAME in content
- assert PropName.DESCRIPTION in content
- assert PropName.CONFIG in content
- assert PropName.QPIS in content
+ assert PlanProp.NAME in content
+ assert PlanProp.DESCRIPTION in content
+ assert PlanProp.CONFIG in content
+ assert PlanProp.QPIS in content