mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 03:44:14 -04:00
Add type hints for tests/unittest.py
. (#12347)
In particular, add type hints for get_success and friends, which are then helpful in a bunch of places.
This commit is contained in:
parent
33ebee47e4
commit
f0b03186d9
12 changed files with 97 additions and 48 deletions
|
@ -354,10 +354,11 @@ class OidcHandlerTestCase(HomeserverTestCase):
|
|||
req = Mock(spec=["cookies"])
|
||||
req.cookies = []
|
||||
|
||||
url = self.get_success(
|
||||
self.provider.handle_redirect_request(req, b"http://client/redirect")
|
||||
url = urlparse(
|
||||
self.get_success(
|
||||
self.provider.handle_redirect_request(req, b"http://client/redirect")
|
||||
)
|
||||
)
|
||||
url = urlparse(url)
|
||||
auth_endpoint = urlparse(AUTHORIZATION_ENDPOINT)
|
||||
|
||||
self.assertEqual(url.scheme, auth_endpoint.scheme)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue