annotate tests.server.FakeChannel (#13136)

This commit is contained in:
David Robertson 2022-07-04 18:08:56 +01:00 committed by GitHub
parent 5b5c943e7d
commit d102ad67fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 36 additions and 26 deletions

View file

@ -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: