Skip to content

Commit

Permalink
@W-15055573 - Updated depricated authentication_error
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbharath committed Feb 20, 2024
1 parent 2a053ec commit 1dca52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion metecho/oauth2/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


class CustomSocialAccountAdapter(DefaultSocialAccountAdapter):
def authentication_error(self, *args, **kwargs):
def on_authentication_error(self, *args, **kwargs):
"""Make sure that auth errors get logged"""
logger.error(f"Social Account authentication error: {args}, {kwargs}")
return super().on_authentication_error(*args, **kwargs)
2 changes: 1 addition & 1 deletion metecho/oauth2/tests/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ def test_authentication_error_logs(mocker):
) # noqa
error = mocker.patch("metecho.oauth2.adapter.logger.error")
adapter = CustomSocialAccountAdapter()
adapter.authentication_error()
adapter.on_authentication_error()
assert error.called

0 comments on commit 1dca52f

Please sign in to comment.