mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-06 23:40:14 +00:00
Define a (class) decorator for easily setting a DEBUG logging level on a TestCase
This commit is contained in:
@@ -49,3 +49,8 @@ class TestCase(unittest.TestCase):
|
||||
logging.getLogger().setLevel(level)
|
||||
return orig_setUp()
|
||||
self.setUp = setUp
|
||||
|
||||
|
||||
def DEBUG(target):
|
||||
target.loglevel = logging.DEBUG
|
||||
return target
|
||||
|
||||
Reference in New Issue
Block a user