aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit/cli/commands/test_cli_env.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-01-03 08:30:51 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2017-01-04 15:35:06 +0100
commit6d361c6804b85b870add58b5b4a6c7df8e9476d4 (patch)
treecdc995501542028ce406aaabb23560098d26d43f /functest/tests/unit/cli/commands/test_cli_env.py
parent563c3e610f184d311f8a4f45cbee51f532f73e49 (diff)
Patch logging.FileHandler
It avoids creating a dummy functest.log for unit testing. Change-Id: Ib163d5d58284822b1904444fb60b08e92ee0ab9b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/tests/unit/cli/commands/test_cli_env.py')
-rw-r--r--functest/tests/unit/cli/commands/test_cli_env.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/functest/tests/unit/cli/commands/test_cli_env.py b/functest/tests/unit/cli/commands/test_cli_env.py
index 4b6ea57a..f70761dc 100644
--- a/functest/tests/unit/cli/commands/test_cli_env.py
+++ b/functest/tests/unit/cli/commands/test_cli_env.py
@@ -11,6 +11,7 @@ import unittest
from git.exc import NoSuchPathError
import mock
+mock.patch('logging.FileHandler').start() # noqa
from functest.cli.commands import cli_env
from functest.utils.constants import CONST
from functest.tests.unit import test_utils