aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-01-25 01:42:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-25 01:42:09 +0000
commit334985a8118c61c7f3fe775b0ac6733c33fd1f06 (patch)
tree6b5a11697e7e941ababdb95787f57d096410bab9 /tests
parent3047a6f8a2c814eacfd8c1e51c8eb3aeb7245c18 (diff)
parentaa29aa91a860ab7659d9cf5afc47049520354ec7 (diff)
Merge "Small corrections"
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/cli/test_metric.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/cli/test_metric.py b/tests/unit/cli/test_metric.py
index ed10689..239da96 100644
--- a/tests/unit/cli/test_metric.py
+++ b/tests/unit/cli/test_metric.py
@@ -10,7 +10,7 @@
import pytest
from click.testing import CliRunner
-from qtip.cli.commands.cmd_metric import cli
+from qtip.cli.entry import cli
@pytest.fixture()
@@ -19,10 +19,13 @@ def runner():
def test_list(runner):
- result = runner.invoke(cli, ['list'])
+ result = runner.invoke(cli, ['metric', 'list'])
assert result.output == ''
def test_run(runner):
- result = runner.invoke(cli, ['run'])
+ result = runner.invoke(cli, ['metric', 'run', 'fake-metric'])
assert result.output == ''
+
+ result = runner.invoke(cli, ['metric', 'run'])
+ assert 'Missing argument "name".' in result.output