From ae949bce040efcce669a105f7dda4a4a760d4276 Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Mon, 18 Jul 2022 22:43:14 -0400 Subject: [PATCH] test_auth_backends: Return an Iterable for idp names. Signed-off-by: Zixuan James Li --- zerver/tests/test_auth_backends.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py index f648a97afa..b4101ccd5f 100644 --- a/zerver/tests/test_auth_backends.py +++ b/zerver/tests/test_auth_backends.py @@ -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: