Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix flake8 issues
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Robinson <[email protected]>
  • Loading branch information
jaywink committed Jan 23, 2019
1 parent 1838ef1 commit 6f68024
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion synapse/app/federation_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ def _listen_http(self, listener_config):
# 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())
Expand Down
2 changes: 1 addition & 1 deletion synapse/config/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def default_config(self, server_name, data_dir_path, **kwargs):
- names: [federation] # Federation APIs
compress: false
# # If federation is disabled synapse can still expose the open ID endpoint
# # to allow integrations to authenticate users
# - names: [openid]
Expand Down
10 changes: 8 additions & 2 deletions tests/app/test_openid_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ def test_openid_listener(self, names, expectation):
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)
Expand Down Expand Up @@ -107,7 +110,10 @@ def test_openid_listener(self, names, expectation):
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)

0 comments on commit 6f68024

Please sign in to comment.