diff options
author | Volodymyr Mytnyk <volodymyrx.mytnyk@intel.com> | 2019-04-09 08:37:33 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-04-09 08:37:33 +0000 |
commit | a2d14aea3e8a02e7f4ec0ef41f36aca6100d85e5 (patch) | |
tree | 24fabb8307f8da4ca28c7f896daca67c6919aeb4 | |
parent | 37b6e13c72a5079fd0b99478a23774d05c21a04f (diff) | |
parent | 269a64291f42c0a210226f7bf002cd4942f1d8fc (diff) |
Merge "Suppress log outputs in test_task.py"
-rw-r--r-- | yardstick/tests/unit/benchmark/core/test_task.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yardstick/tests/unit/benchmark/core/test_task.py b/yardstick/tests/unit/benchmark/core/test_task.py index 1903babf9..0f09b3e59 100644 --- a/yardstick/tests/unit/benchmark/core/test_task.py +++ b/yardstick/tests/unit/benchmark/core/test_task.py @@ -31,6 +31,14 @@ from yardstick.common import utils class TaskTestCase(unittest.TestCase): + def setUp(self): + self._mock_log = mock.patch.object(task, 'LOG') + self.mock_log = self._mock_log.start() + self.addCleanup(self._stop_mock) + + def _stop_mock(self): + self._mock_log.stop() + @mock.patch.object(base, 'Context') def test_parse_nodes_with_context_same_context(self, mock_context): scenario_cfg = { |