core: use of the new core.log module:
/!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
This commit is contained in:
parent
dc5c042fe7
commit
501bc92528
1 changed files with 707 additions and 941 deletions
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
""" Tests for the plugin radiocol """
|
||||
|
||||
from sat.core.i18n import _
|
||||
from sat.core import exceptions
|
||||
from sat.test import helpers, helpers_plugins
|
||||
from sat.plugins import plugin_misc_radiocol as plugin
|
||||
|
|
@ -64,7 +63,7 @@ class RadiocolTest(helpers.SatTestCase):
|
|||
self.plugin_0249 = self.host.plugins['XEP-0249'] = helpers_plugins.FakeXEP_0249(self.host)
|
||||
logger = logging.getLogger()
|
||||
level = logger.getEffectiveLevel()
|
||||
logger.setLevel(logging.WARNING) # remove info pollution
|
||||
logger.setLevel(logging.WARNING) # remove log.info pollution
|
||||
for profile in Const.PROFILE:
|
||||
self.host.getClient(profile) # init self.host.profiles[profile]
|
||||
logger.setLevel(level)
|
||||
|
|
|
|||
Loading…
Reference in a new issue