test_auth_backends: Return an Iterable for idp names.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li 2022-07-18 22:43:14 -04:00 committed by Tim Abbott
parent fdd0d18f8b
commit ae949bce04

View File

@ -15,6 +15,7 @@ from typing import (
Any,
Callable,
Dict,
Iterable,
Iterator,
List,
Mapping,
@ -4716,7 +4717,7 @@ class DevGetEmailsTest(ZulipTestCase):
class ExternalMethodDictsTests(ZulipTestCase):
def get_configured_saml_backend_idp_names(self) -> List[str]:
def get_configured_saml_backend_idp_names(self) -> Iterable[str]:
return settings.SOCIAL_AUTH_SAML_ENABLED_IDPS.keys()
def test_get_external_method_dicts_correctly_sorted(self) -> None: