diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-02-17 13:19:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 18:19:38 +0000 |
commit | c9b9143655d39ef691bd21ebc03434feb0dc377f (patch) | |
tree | 7337697cd6d0fcecace3a7344960e28430635e63 /tests/rest/client/test_auth.py | |
parent | Add account data to export command (#14969) (diff) | |
download | synapse-c9b9143655d39ef691bd21ebc03434feb0dc377f.tar.xz |
Fix-up type hints in tests/server.py. (#15084)
This file was being ignored by mypy, we remove that and add the missing type hints & deal with any fallout.
Diffstat (limited to 'tests/rest/client/test_auth.py')
-rw-r--r-- | tests/rest/client/test_auth.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/rest/client/test_auth.py b/tests/rest/client/test_auth.py index f4e1e7de43..a144610078 100644 --- a/tests/rest/client/test_auth.py +++ b/tests/rest/client/test_auth.py @@ -34,7 +34,7 @@ from synapse.util import Clock from tests import unittest from tests.handlers.test_oidc import HAS_OIDC from tests.rest.client.utils import TEST_OIDC_CONFIG, TEST_OIDC_ISSUER -from tests.server import FakeChannel, make_request +from tests.server import FakeChannel from tests.unittest import override_config, skip_unless @@ -1322,16 +1322,8 @@ class OidcBackchannelLogoutTests(unittest.HomeserverTestCase): channel = self.submit_logout_token(logout_token) self.assertEqual(channel.code, 200) - # Now try to exchange the login token - channel = make_request( - self.hs.get_reactor(), - self.site, - "POST", - "/login", - content={"type": "m.login.token", "token": login_token}, - ) - # It should have failed - self.assertEqual(channel.code, 403) + # Now try to exchange the login token, it should fail. + self.helper.login_via_token(login_token, 403) @override_config( { |