Fix flake8 issues
Signed-off-by: Jason Robinson <jasonr@matrix.org>
This commit is contained in:
parent
1838ef1ac3
commit
6f680241bd
|
@ -92,7 +92,10 @@ class FederationReaderServer(HomeServer):
|
|||
# is not specified since federation resource includes openid
|
||||
# resource.
|
||||
resources.update({
|
||||
FEDERATION_PREFIX: TransportLayerServer(self, servlet_groups=["openid"]),
|
||||
FEDERATION_PREFIX: TransportLayerServer(
|
||||
self,
|
||||
servlet_groups=["openid"],
|
||||
),
|
||||
})
|
||||
|
||||
root_resource = create_resource_tree(resources, NoResource())
|
||||
|
|
|
@ -61,7 +61,10 @@ class FederationReaderOpenIDListenerTests(HomeserverTestCase):
|
|||
return
|
||||
raise
|
||||
|
||||
request, channel = self.make_request("GET", "/_matrix/federation/v1/openid/userinfo")
|
||||
request, channel = self.make_request(
|
||||
"GET",
|
||||
"/_matrix/federation/v1/openid/userinfo",
|
||||
)
|
||||
self.render(request)
|
||||
|
||||
self.assertEqual(channel.code, 401)
|
||||
|
@ -107,7 +110,10 @@ class SynapseHomeserverOpenIDListenerTests(HomeserverTestCase):
|
|||
return
|
||||
raise
|
||||
|
||||
request, channel = self.make_request("GET", "/_matrix/federation/v1/openid/userinfo")
|
||||
request, channel = self.make_request(
|
||||
"GET",
|
||||
"/_matrix/federation/v1/openid/userinfo",
|
||||
)
|
||||
self.render(request)
|
||||
|
||||
self.assertEqual(channel.code, 401)
|
||||
|
|
Loading…
Reference in New Issue