mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
lint, fix tests
This commit is contained in:
parent
885134529f
commit
39f6595b4a
@ -161,7 +161,9 @@ class BaseProfileHandler(BaseHandler):
|
||||
profile = yield self.store.get_profileinfo(target_user.localpart)
|
||||
if profile.display_name:
|
||||
raise SynapseError(
|
||||
400, "Changing display name is disabled on this server", Codes.FORBIDDEN
|
||||
400,
|
||||
"Changing display name is disabled on this server",
|
||||
Codes.FORBIDDEN,
|
||||
)
|
||||
|
||||
if len(new_displayname) > MAX_DISPLAYNAME_LEN:
|
||||
|
@ -413,7 +413,7 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
|
||||
def test_add_email_if_disabled(self):
|
||||
"""Test add mail to profile if disabled
|
||||
"""
|
||||
self.hs.config.enable_3pid_changes = True
|
||||
self.hs.config.enable_3pid_changes = False
|
||||
|
||||
client_secret = "foobar"
|
||||
session_id = self._request_token(self.email, client_secret)
|
||||
@ -485,7 +485,7 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
|
||||
def test_delete_email_if_disabled(self):
|
||||
"""Test delete mail from profile if disabled
|
||||
"""
|
||||
self.hs.config.enable_3pid_changes = True
|
||||
self.hs.config.enable_3pid_changes = False
|
||||
|
||||
# Add a threepid
|
||||
self.get_success(
|
||||
|
Loading…
Reference in New Issue
Block a user