Skip to content

Commit

Permalink
Fixing test failures on_authentication_error for DefaultSocialAccount…
Browse files Browse the repository at this point in the history
…Adapter
  • Loading branch information
vsbharath committed Jan 12, 2024
1 parent f6369e8 commit 339da0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sfdo_template_helpers/oauth2/tests/test_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

def test_authentication_error_logs(mocker):
mocker.patch(
"allauth.socialaccount.adapter.DefaultSocialAccountAdapter.authentication_error"
"allauth.socialaccount.adapter.DefaultSocialAccountAdapter.on_authentication_error"
) # noqa
error = mocker.patch("sfdo_template_helpers.oauth2.adapter.logger.error")
adapter = SFDOSocialAccountAdapter()

with pytest.raises(exceptions.ConnectionError):
adapter.on_authentication_error(exception=exceptions.ConnectionError)
adapter.authentication_error(exception=exceptions.ConnectionError)

assert error.called

0 comments on commit 339da0a

Please sign in to comment.