mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:04:50 -04:00
Run black.
This commit is contained in:
parent
b37c472419
commit
8b3d9b6b19
75 changed files with 1626 additions and 2277 deletions
|
@ -56,6 +56,7 @@ def around(target):
|
|||
def method_name(orig, *args, **kwargs):
|
||||
return orig(*args, **kwargs)
|
||||
"""
|
||||
|
||||
def _around(code):
|
||||
name = code.__name__
|
||||
orig = getattr(target, name)
|
||||
|
@ -89,6 +90,7 @@ class TestCase(unittest.TestCase):
|
|||
old_level = logging.getLogger().level
|
||||
|
||||
if old_level != level:
|
||||
|
||||
@around(self)
|
||||
def tearDown(orig):
|
||||
ret = orig()
|
||||
|
@ -117,8 +119,9 @@ class TestCase(unittest.TestCase):
|
|||
actual (dict): The test result. Extra keys will not be checked.
|
||||
"""
|
||||
for key in required:
|
||||
self.assertEquals(required[key], actual[key],
|
||||
msg="%s mismatch. %s" % (key, actual))
|
||||
self.assertEquals(
|
||||
required[key], actual[key], msg="%s mismatch. %s" % (key, actual)
|
||||
)
|
||||
|
||||
|
||||
def DEBUG(target):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue