diff options
author | Taseer <taseer94@gmail.com> | 2017-03-13 21:13:45 +0500 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-03-16 15:57:14 +0000 |
commit | 638398e593ab95b8e280a3dafd9e1258dd5560e0 (patch) | |
tree | 5510f9078ebd2fb882ec6a517a705ca734dee9e0 /tests/unit/cli/cmd_qpi_test.py | |
parent | af798ce161d0a074823344fafb4984cc6f35ceec (diff) |
Implement 'show' command.
- Render the description via templates
JIRA: QTIP-205
Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
(cherry picked from commit bb5af4b9be1325b61c7f80e71c7d50892ae22956)
Diffstat (limited to 'tests/unit/cli/cmd_qpi_test.py')
-rw-r--r-- | tests/unit/cli/cmd_qpi_test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/cli/cmd_qpi_test.py b/tests/unit/cli/cmd_qpi_test.py index 7067d62c..3d2c2613 100644 --- a/tests/unit/cli/cmd_qpi_test.py +++ b/tests/unit/cli/cmd_qpi_test.py @@ -32,8 +32,9 @@ def test_run(runner): def test_show(runner): - result = runner.invoke(cli, ['qpi', 'show', 'fake-qpi']) - assert result.output == '' + result = runner.invoke(cli, ['qpi', 'show', 'compute']) + assert 'Name: compute' in result.output + assert 'Description: sample performance index of computing' in result.output result = runner.invoke(cli, ['qpi', 'show']) assert 'Missing argument "name".' in result.output |