aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-06-05 23:59:25 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-06-06 01:55:18 -0700
commit6746ada2e8c837da948c3260ceb8829ea1fc27de (patch)
tree92c76f63e973d826d67300931e7bde331de3ba41 /tests
parent1f5e2b8f41417d38ae06af1f52cbbc123c0986e3 (diff)
fix No handler warning by calling _init_logging
No handlers could be found for logger It looks like we need to call _init_logging to properly setup the logging during unittests. This should fix the influxdb unittest warning. JIRA: YARDSTICK-506 Change-Id: I57f6e4088005a691d6587fc68b85455ff257a66c Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/dispatcher/test_influxdb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/dispatcher/test_influxdb.py b/tests/unit/dispatcher/test_influxdb.py
index 0c7b58135..dca3c4189 100644
--- a/tests/unit/dispatcher/test_influxdb.py
+++ b/tests/unit/dispatcher/test_influxdb.py
@@ -14,11 +14,15 @@
from __future__ import absolute_import
import unittest
+
try:
from unittest import mock
except ImportError:
import mock
+from yardstick import _init_logging
+_init_logging()
+
from yardstick.dispatcher.influxdb import InfluxdbDispatcher