aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/cli/commands/test_cli_testcase.py
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-05-19 08:40:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-19 08:40:43 +0000
commitf5c8f9dd175e462bf362b5c301205a3376a0d82b (patch)
tree5658f9620c3deed860e44dd5907a0d623e44628e /functest/tests/unit/cli/commands/test_cli_testcase.py
parent9b36089c6a5f01e0770351d0e93b5f34410248a3 (diff)
parented88e5e9abb8c24cee2507b62a45878637411c25 (diff)
Merge "Modify how to disable logging in unit test."
Diffstat (limited to 'functest/tests/unit/cli/commands/test_cli_testcase.py')
-rw-r--r--functest/tests/unit/cli/commands/test_cli_testcase.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/functest/tests/unit/cli/commands/test_cli_testcase.py b/functest/tests/unit/cli/commands/test_cli_testcase.py
index 2d09514e..fddfc317 100644
--- a/functest/tests/unit/cli/commands/test_cli_testcase.py
+++ b/functest/tests/unit/cli/commands/test_cli_testcase.py
@@ -17,8 +17,6 @@ from functest.utils.constants import CONST
class CliTestCasesTesting(unittest.TestCase):
- logging.disable(logging.CRITICAL)
-
def setUp(self):
self.testname = 'testname'
with mock.patch('functest.cli.commands.cli_testcase.tb'):
@@ -108,4 +106,5 @@ class CliTestCasesTesting(unittest.TestCase):
if __name__ == "__main__":
+ logging.disable(logging.CRITICAL)
unittest.main(verbosity=2)