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

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel committed Mar 23, 2020
1 parent 219cf3f commit 050d780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion synapse/config/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def generate_config_section(self, generate_secrets=False, **kwargs):
# Does not apply to server administrators. Defaults to 'true'
#
#enable_set_displayname: false
# Whether users are allowed to change their avatar after it has been
# initially set. Useful when provisioning users based on the contents
# of a third-party directory.
Expand Down
6 changes: 2 additions & 4 deletions tests/handlers/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def test_set_my_name(self):
)

self.assertEquals(
(yield self.store.get_profile_displayname(self.frank.localpart)),
"Frank",
(yield self.store.get_profile_displayname(self.frank.localpart)), "Frank",
)

@defer.inlineCallbacks
Expand All @@ -109,8 +108,7 @@ def test_set_my_name_if_disabled(self):
yield self.store.set_profile_displayname(self.frank.localpart, "Frank")

self.assertEquals(
(yield self.store.get_profile_displayname(self.frank.localpart)),
"Frank",
(yield self.store.get_profile_displayname(self.frank.localpart)), "Frank",
)

# Set second time displayname is forbidden
Expand Down

0 comments on commit 050d780

Please sign in to comment.