summaryrefslogtreecommitdiffstats
path: root/tests/unit/cli/cmd_metric_test.py
diff options
context:
space:
mode:
authorTaseer <taseer94@gmail.com>2017-03-13 21:13:45 +0500
committerTaseer <taseer94@gmail.com>2017-03-14 14:23:31 +0500
commitbb5af4b9be1325b61c7f80e71c7d50892ae22956 (patch)
tree236caabf92576f3a4d9708bc03768340782f09e7 /tests/unit/cli/cmd_metric_test.py
parenta5145885c7a43622f803534ed97890ef9acb852d (diff)
Implement 'show' command.
- Render the description via templates JIRA: QTIP-205 Change-Id: I10523f85f80350e901a4a701bb65ca4833f8ff7c Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'tests/unit/cli/cmd_metric_test.py')
-rw-r--r--tests/unit/cli/cmd_metric_test.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/cli/cmd_metric_test.py b/tests/unit/cli/cmd_metric_test.py
index e121fb1e..cd496ad9 100644
--- a/tests/unit/cli/cmd_metric_test.py
+++ b/tests/unit/cli/cmd_metric_test.py
@@ -34,8 +34,10 @@ def test_run(runner):
def test_show(runner):
- result = runner.invoke(cli, ['metric', 'show', 'fake-metric'])
- assert result.output == ''
+ result = runner.invoke(cli, ['metric', 'show', 'dhrystone'])
+ assert 'Name: dhrystone' in result.output
+ assert 'Description: A synthetic computing benchmark program intended to be representative of' \
+ 'system (integer) programming.'
result = runner.invoke(cli, ['metric', 'show'])
assert 'Missing argument "name".' in result.output