mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Run Black on the tests again (#5170)
This commit is contained in:
parent
d9a02d1201
commit
b36c82576e
54 changed files with 818 additions and 1158 deletions
|
@ -182,7 +182,8 @@ def make_request(
|
|||
|
||||
if federation_auth_origin is not None:
|
||||
req.requestHeaders.addRawHeader(
|
||||
b"Authorization", b"X-Matrix origin=%s,key=,sig=" % (federation_auth_origin,)
|
||||
b"Authorization",
|
||||
b"X-Matrix origin=%s,key=,sig=" % (federation_auth_origin,),
|
||||
)
|
||||
|
||||
if content:
|
||||
|
@ -233,7 +234,7 @@ class ThreadedMemoryReactorClock(MemoryReactorClock):
|
|||
class FakeResolver(object):
|
||||
def getHostByName(self, name, timeout=None):
|
||||
if name not in lookups:
|
||||
return fail(DNSLookupError("OH NO: unknown %s" % (name, )))
|
||||
return fail(DNSLookupError("OH NO: unknown %s" % (name,)))
|
||||
return succeed(lookups[name])
|
||||
|
||||
self.nameResolver = SimpleResolverComplexifier(FakeResolver())
|
||||
|
@ -454,6 +455,6 @@ class FakeTransport(object):
|
|||
logger.warning("Exception writing to protocol: %s", e)
|
||||
return
|
||||
|
||||
self.buffer = self.buffer[len(to_write):]
|
||||
self.buffer = self.buffer[len(to_write) :]
|
||||
if self.buffer and self.autoflush:
|
||||
self._reactor.callLater(0.0, self.flush)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue