Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 5, 2024
1 parent d54b98b commit 4370f11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/unit/api/v1/test_oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 4370f11

Please sign in to comment.