aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTaseer Ahmed <taseer94@gmail.com>2017-03-04 12:52:50 +0500
committerTaseer Ahmed <taseer94@gmail.com>2017-03-04 13:14:38 +0500
commit17c1050f26d6b1693e9731253d8f297aed99fee5 (patch)
tree0a885de58c4b68c6deed731680c583073da45a4b /tests
parent26dc128e571e38d5264b2708001f1d63e4cd6d52 (diff)
Implement debug option
Show traceback only when debug flag specified. JIRA: QTIP-201 Change-Id: I9cc4b4ed5a2cb2d2efabd9c0eb3aac216321ebac Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/cli/options_test.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/unit/cli/options_test.py b/tests/unit/cli/options_test.py
index f947281..9dbbe6f 100644
--- a/tests/unit/cli/options_test.py
+++ b/tests/unit/cli/options_test.py
@@ -1,5 +1,5 @@
###############################################################
-# Copyright (c) 2016 ZTE Corp and others.
+# Copyright (c) 2017 taseer94@gmail.com and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
@@ -8,8 +8,9 @@
##############################################################################
import pytest
-from click.testing import CliRunner
+import sys
+from click.testing import CliRunner
from qtip.cli.entry import cli
@@ -28,5 +29,5 @@ class TestClass(object):
assert 'dev' in result.output
def test_debug(self, runner):
- result = runner.invoke(cli, ['-d'])
- assert '' in result.output
+ runner.invoke(cli, ['-d'])
+ assert sys.tracebacklimit == 8