diff --git a/sfdo_template_helpers/oauth2/tests/test_adapter.py b/sfdo_template_helpers/oauth2/tests/test_adapter.py index 22c6d4e..9bc111e 100644 --- a/sfdo_template_helpers/oauth2/tests/test_adapter.py +++ b/sfdo_template_helpers/oauth2/tests/test_adapter.py @@ -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