summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavanum Srinivas <dims@linux.vnet.ibm.com>2013-05-14 08:39:36 -0400
committerDavanum Srinivas <dims@linux.vnet.ibm.com>2013-05-14 08:41:33 -0400
commitb135234079d0b01791f71568d4515ee828a96686 (patch)
tree84e253b064d65a46adb53f9b4b2c0db572746e1a /tests
parent3e0114f570d97c47b1b8eefce0bcd27146098b8d (diff)
downloadoslo-b135234079d0b01791f71568d4515ee828a96686.tar.gz
oslo-b135234079d0b01791f71568d4515ee828a96686.tar.xz
oslo-b135234079d0b01791f71568d4515ee828a96686.zip
Remove the notifier and its dependencies from log.py
Move the code related to the publish error handler out of the log module so its easier for other projects to consume it Fixes LP #1179528 Change-Id: Ibf28ba17f81b5ddeda653f6a3501ecac18ffcd42
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_log.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_log.py b/tests/unit/test_log.py
index c73f67a..301e3a8 100644
--- a/tests/unit/test_log.py
+++ b/tests/unit/test_log.py
@@ -10,6 +10,7 @@ from oslo.config import cfg
from openstack.common import context
from openstack.common import jsonutils
from openstack.common import log
+from openstack.common.log_handler import PublishErrorsHandler
from openstack.common.notifier import api as notifier
from tests import utils as test_utils
@@ -114,7 +115,7 @@ class PublishErrorsHandlerTestCase(test_utils.BaseTestCase):
"""Tests for log.PublishErrorsHandler"""
def setUp(self):
super(PublishErrorsHandlerTestCase, self).setUp()
- self.publiserrorshandler = log.PublishErrorsHandler(logging.ERROR)
+ self.publiserrorshandler = PublishErrorsHandler(logging.ERROR)
def test_emit_cfg_log_notifier_in_notifier_drivers(self):
self.config(notification_driver=[