aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-12-13 23:27:55 +0800
committerYujun Zhang <zhang.yujunz@zte.com.cn>2016-12-13 23:31:33 +0800
commit2ea5b33bab78dfc7608ed8980a9ec846e42098ab (patch)
tree3aaeaaa718f4a0072d1e140a6ca76b649adf038d /tests
parentbef252222c8f420bc7eae25743d37dcc1745117b (diff)
Add unit test for `describe` method
Change-Id: I6d37ab283d7fcfb0c15dd8065121b706dd80392b Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/runner/perftest_test.py6
-rw-r--r--tests/unit/runner/suite_test.py6
-rw-r--r--tests/unit/runner/testplan_test.py6
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/unit/runner/perftest_test.py b/tests/unit/runner/perftest_test.py
index 1f0b5631..2b400ac8 100644
--- a/tests/unit/runner/perftest_test.py
+++ b/tests/unit/runner/perftest_test.py
@@ -40,3 +40,9 @@ class TestPerfTest:
assert Property.DESCRIPTION in desc
assert Property.ABSPATH in desc
assert Property.ABSPATH is not None
+
+ def test_describe(self):
+ desc = PerfTest('test-a').describe()
+ assert Property.NAME in desc
+ assert Property.DESCRIPTION in desc
+ assert Property.ABSPATH in desc
diff --git a/tests/unit/runner/suite_test.py b/tests/unit/runner/suite_test.py
index 10205801..acfed82c 100644
--- a/tests/unit/runner/suite_test.py
+++ b/tests/unit/runner/suite_test.py
@@ -40,3 +40,9 @@ class TestSuite:
assert Property.DESCRIPTION in suite_desc
assert Property.ABSPATH in suite_desc
assert Property.ABSPATH is not None
+
+ def test_describe(self):
+ desc = Suite('suite-a').describe()
+ assert Property.NAME in desc
+ assert Property.DESCRIPTION in desc
+ assert Property.ABSPATH in desc
diff --git a/tests/unit/runner/testplan_test.py b/tests/unit/runner/testplan_test.py
index de8bf1e1..7e42f557 100644
--- a/tests/unit/runner/testplan_test.py
+++ b/tests/unit/runner/testplan_test.py
@@ -40,3 +40,9 @@ class TestTestPlan:
assert Property.DESCRIPTION in desc
assert Property.ABSPATH in desc
assert Property.ABSPATH is not None
+
+ def test_describe(self):
+ desc = TestPlan('plan-a').describe()
+ assert Property.NAME in desc
+ assert Property.DESCRIPTION in desc
+ assert Property.ABSPATH in desc