diff --git a/tests/unit/api/v1/test_oauth2.py b/tests/unit/api/v1/test_oauth2.py index e990ffe0..81b55ba1 100644 --- a/tests/unit/api/v1/test_oauth2.py +++ b/tests/unit/api/v1/test_oauth2.py @@ -119,9 +119,7 @@ async def test_provider_authentication_with_oauth_disabled_and_provider_defined( default_oauth_settings: OAuth2Settings, ): default_oauth_settings.enabled = False - with mock.patch( - "argilla_server.security.settings.Settings.oauth", new_callable=lambda: default_oauth_settings - ): + with mock.patch("argilla_server.security.settings.Settings.oauth", new_callable=lambda: default_oauth_settings): response = await async_client.get( "/api/v1/oauth2/providers/huggingface/authentication", headers=owner_auth_header )