mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Define a (class) decorator for easily setting a DEBUG logging level on a TestCase
This commit is contained in:
parent
ca8349a897
commit
33c4dd4c2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user