fix No handler warning by calling _init_logging 05/35805/3
authorRoss Brattain <ross.b.brattain@intel.com>
Tue, 6 Jun 2017 06:59:25 +0000 (23:59 -0700)
committerRoss Brattain <ross.b.brattain@intel.com>
Tue, 6 Jun 2017 08:55:18 +0000 (01:55 -0700)
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>
tests/unit/dispatcher/test_influxdb.py

index 0c7b581..dca3c41 100644 (file)
 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