diff options
author | 2017-02-22 06:45:45 +0500 | |
---|---|---|
committer | 2017-02-22 07:04:15 +0500 | |
commit | a0a2c2388b9c05c2dff3425b581b33d1695d56eb (patch) | |
tree | 9d445b44feabb3838c18af18454576732f7756b6 /tests/unit/cli/cmd_metric_test.py | |
parent | a95ed75274a7f98e8988bfbf521c29c9da021fa2 (diff) |
Addition of detail viewing command.
Change-Id: Ia9ad825f20b279db1852587540a2ad6cb3815e1d
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.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/unit/cli/cmd_metric_test.py b/tests/unit/cli/cmd_metric_test.py index 239da96e..30f3448a 100644 --- a/tests/unit/cli/cmd_metric_test.py +++ b/tests/unit/cli/cmd_metric_test.py @@ -13,7 +13,7 @@ from click.testing import CliRunner from qtip.cli.entry import cli -@pytest.fixture() +@pytest.fixture(scope="module") def runner(): return CliRunner() @@ -29,3 +29,11 @@ def test_run(runner): result = runner.invoke(cli, ['metric', 'run']) assert 'Missing argument "name".' in result.output + + +def test_show(runner): + result = runner.invoke(cli, ['metric', 'show', 'fake-metric']) + assert result.output == '' + + result = runner.invoke(cli, ['metric', 'show']) + assert 'Missing argument "name".' in result.output |