mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-09 08:45:03 -04:00
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.
This commit is contained in:
parent
61bfcd669a
commit
c9b9143655
9 changed files with 226 additions and 129 deletions
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue