summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-01-20 08:43:15 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-01-20 08:43:15 +0000
commite835a660789c2f152750308fa1eeb1b5e970a257 (patch)
treebf7367000116283d6c08f1692feb52dd86f7c7fa /tests
parent0ee2dc70d7b58ffc929555d0c42f39d3cb4e8e69 (diff)
parent81aaf88e151694a08ff3d4cf4a7fe50df7232731 (diff)
Merge "Metric module outline"
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/cli/test_metric.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/unit/cli/test_metric.py b/tests/unit/cli/test_metric.py
new file mode 100644
index 00000000..ed10689c
--- /dev/null
+++ b/tests/unit/cli/test_metric.py
@@ -0,0 +1,28 @@
+###############################################################
+# Copyright (c) 2016 ZTE Corp and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+import pytest
+from click.testing import CliRunner
+
+from qtip.cli.commands.cmd_metric import cli
+
+
+@pytest.fixture()
+def runner():
+ return CliRunner()
+
+
+def test_list(runner):
+ result = runner.invoke(cli, ['list'])
+ assert result.output == ''
+
+
+def test_run(runner):
+ result = runner.invoke(cli, ['run'])
+ assert result.output == ''