diff options
author | Taseer Ahmed <taseer94@gmail.com> | 2017-01-09 20:41:23 +0500 |
---|---|---|
committer | Taseer Ahmed <taseer94@gmail.com> | 2017-01-17 19:02:31 +0500 |
commit | 81aaf88e151694a08ff3d4cf4a7fe50df7232731 (patch) | |
tree | 54cba3438763c78a4dd32de242b1b3e4c132d03d /tests/unit | |
parent | 2a3a0aec933566bc676ad259ca51e6eaa1f8ab76 (diff) |
Metric module outline
Change-Id: Id95b07f1c0821ae0883c761fdf8f507afba4e5c0
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/cli/test_metric.py | 28 |
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 == '' |