mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 16:02:15 +01:00
lint
This commit is contained in:
parent
04f4b5f6f8
commit
50ea178c20
1 changed files with 8 additions and 10 deletions
|
@ -438,7 +438,9 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
|
||||||
)
|
)
|
||||||
self.render(request)
|
self.render(request)
|
||||||
self.assertEqual(400, int(channel.result["code"]), msg=channel.result["body"])
|
self.assertEqual(400, int(channel.result["code"]), msg=channel.result["body"])
|
||||||
self.assertEqual("3PID changes disabled on this server", channel.json_body["error"])
|
self.assertEqual(
|
||||||
|
"3PID changes disabled on this server", channel.json_body["error"]
|
||||||
|
)
|
||||||
|
|
||||||
# Get user
|
# Get user
|
||||||
request, channel = self.make_request(
|
request, channel = self.make_request(
|
||||||
|
@ -466,10 +468,7 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
|
||||||
request, channel = self.make_request(
|
request, channel = self.make_request(
|
||||||
"POST",
|
"POST",
|
||||||
b"account/3pid/delete",
|
b"account/3pid/delete",
|
||||||
{
|
{"medium": "email", "address": self.email},
|
||||||
"medium": "email",
|
|
||||||
"address": self.email
|
|
||||||
},
|
|
||||||
access_token=self.user_id_tok,
|
access_token=self.user_id_tok,
|
||||||
)
|
)
|
||||||
self.render(request)
|
self.render(request)
|
||||||
|
@ -503,16 +502,15 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
|
||||||
request, channel = self.make_request(
|
request, channel = self.make_request(
|
||||||
"POST",
|
"POST",
|
||||||
b"account/3pid/delete",
|
b"account/3pid/delete",
|
||||||
{
|
{"medium": "email", "address": self.email},
|
||||||
"medium": "email",
|
|
||||||
"address": self.email
|
|
||||||
},
|
|
||||||
access_token=self.user_id_tok,
|
access_token=self.user_id_tok,
|
||||||
)
|
)
|
||||||
self.render(request)
|
self.render(request)
|
||||||
|
|
||||||
self.assertEqual(400, int(channel.result["code"]), msg=channel.result["body"])
|
self.assertEqual(400, int(channel.result["code"]), msg=channel.result["body"])
|
||||||
self.assertEqual("3PID changes disabled on this server", channel.json_body["error"])
|
self.assertEqual(
|
||||||
|
"3PID changes disabled on this server", channel.json_body["error"]
|
||||||
|
)
|
||||||
|
|
||||||
# Get user
|
# Get user
|
||||||
request, channel = self.make_request(
|
request, channel = self.make_request(
|
||||||
|
|
Loading…
Reference in a new issue