mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-25 05:45:19 -04:00
annotate tests.server.FakeChannel (#13136)
This commit is contained in:
parent
5b5c943e7d
commit
d102ad67fd
7 changed files with 36 additions and 26 deletions
|
@ -949,7 +949,7 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
|
|||
client_secret: str,
|
||||
next_link: Optional[str] = None,
|
||||
expect_code: int = 200,
|
||||
) -> str:
|
||||
) -> Optional[str]:
|
||||
"""Request a validation token to add an email address to a user's account
|
||||
|
||||
Args:
|
||||
|
@ -959,7 +959,8 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
|
|||
expect_code: Expected return code of the call
|
||||
|
||||
Returns:
|
||||
The ID of the new threepid validation session
|
||||
The ID of the new threepid validation session, or None if the response
|
||||
did not contain a session ID.
|
||||
"""
|
||||
body = {"client_secret": client_secret, "email": email, "send_attempt": 1}
|
||||
if next_link:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue