diff options
author | David Robertson <davidr@element.io> | 2022-07-04 18:08:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-04 18:08:56 +0100 |
commit | d102ad67fddc650c34baa89dc7b2926d46a9aeca (patch) | |
tree | 542df6d58640540ea934cd7a5bd0e1486fe96bdf /tests/rest/client/test_account.py | |
parent | Revert "Up the dependency on canonicaljson to ^1.5.0" (diff) | |
download | synapse-d102ad67fddc650c34baa89dc7b2926d46a9aeca.tar.xz |
annotate tests.server.FakeChannel (#13136)
Diffstat (limited to 'tests/rest/client/test_account.py')
-rw-r--r-- | tests/rest/client/test_account.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rest/client/test_account.py b/tests/rest/client/test_account.py index a43a137273..1f9b65351e 100644 --- a/tests/rest/client/test_account.py +++ b/tests/rest/client/test_account.py @@ -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: |