Mercurial > libervia-backend
diff src/test/test_plugin_misc_radiocol.py @ 997:b3f383ab39da
test: configuration/use of new logging system
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 21 Apr 2014 20:04:52 +0200 |
parents | 301b342c697a |
children | 2308f8405ffb |
line wrap: on
line diff
--- a/src/test/test_plugin_misc_radiocol.py Mon Apr 21 19:45:10 2014 +0200 +++ b/src/test/test_plugin_misc_radiocol.py Mon Apr 21 20:04:52 2014 +0200 @@ -21,6 +21,7 @@ """ Tests for the plugin radiocol """ from sat.core import exceptions +from sat.core.log import getLogger from sat.test import helpers, helpers_plugins from sat.plugins import plugin_misc_radiocol as plugin from sat.plugins import plugin_misc_room_game as plugin_room_game @@ -36,10 +37,10 @@ from mutagen.oggvorbis import OggVorbis import uuid -import logging import os import copy import shutil +from logging import WARNING ROOM_JID_S = Const.MUC_STR[0] PROFILE = Const.PROFILE[0] @@ -61,9 +62,9 @@ self.plugin.testing = True self.plugin_0045 = self.host.plugins['XEP-0045'] = helpers_plugins.FakeXEP_0045(self.host) self.plugin_0249 = self.host.plugins['XEP-0249'] = helpers_plugins.FakeXEP_0249(self.host) - logger = logging.getLogger() + logger = getLogger() level = logger.getEffectiveLevel() - logger.setLevel(logging.WARNING) # remove log.info pollution + logger.setLevel(WARNING) # remove log.info pollution for profile in Const.PROFILE: self.host.getClient(profile) # init self.host.profiles[profile] logger.setLevel(level)