Skip to content

Commit 3aa3c57

Browse files
committed
See #223 Fix doc signature of get_attribute method
1 parent ee8b5d7 commit 3aa3c57

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/onelogin/saml2/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,8 @@ def get_attribute(self, name):
315315
:param name: Name of the attribute
316316
:type name: string
317317
318-
:returns: Attribute value if exists or None
319-
:rtype: string
318+
:returns: Attribute value(s) if exists or None
319+
:rtype: list
320320
"""
321321
assert isinstance(name, compat.str_type)
322322
return self.__attributes.get(name)

tests/src/OneLogin/saml2_tests/auth_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ def testGetSLOresponseUrl(self):
102102
slo_url = settings_info['idp']['singleLogoutService']['url']
103103
self.assertEqual(auth.get_slo_response_url(), slo_url)
104104

105-
106105
def testGetSessionIndex(self):
107106
"""
108107
Tests the get_session_index method of the OneLogin_Saml2_Auth class

0 commit comments

Comments
 (0)