Skip to content

Commit

Permalink
[MIG] auth_saml: fix E501 Line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Jun 4, 2024
1 parent c0c7cd3 commit bbf8d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion auth_saml/models/auth_saml_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ def _validate_auth_response(self, token: str, base_url: str = None):

if not matching_value:
raise Exception(
f"Matching attribute {self.matching_attribute} not found in user attrs: {attrs}"
f"Matching attribute {self.matching_attribute} not found "
f"in user attrs: {attrs}"
)

if matching_value and isinstance(matching_value, list):
Expand Down
3 changes: 2 additions & 1 deletion auth_saml/tests/test_pysaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def test_disallow_user_password(self):
self.authenticate(user="test@example.com", password="Lu,ums-7vRU>0i]=YDLa")

def test_disallow_user_admin_can_have_password(self):
"""Test that admin can have its password set even if the disallow option is set."""
"""Test that admin can have its password set
even if the disallow option is set."""
# change the option
self.browse_ref(
"auth_saml.allow_saml_uid_and_internal_password"
Expand Down

0 comments on commit bbf8d1b

Please sign in to comment.