[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-03-23 18:36:03 +00:00 committed by GitHub
parent ae9513b4d1
commit 96eab76bfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 6 deletions

View File

@ -188,9 +188,7 @@ class TestOAuthCallback:
],
)
@patch("controllers.console.auth.oauth.get_oauth_providers")
def test_should_handle_oauth_exceptions(
self, mock_get_providers, resource, app, exception, expected_error
):
def test_should_handle_oauth_exceptions(self, mock_get_providers, resource, app, exception, expected_error):
# Import the real requests module to create a proper exception
import httpx
@ -407,9 +405,7 @@ class TestAccountGeneration:
@patch("controllers.console.auth.oauth.AccountService.get_account_by_email_with_case_fallback")
@patch("controllers.console.auth.oauth.Account")
def test_should_get_account_by_openid_or_email(
self, mock_account_model, mock_get_account, user_info, mock_account
):
def test_should_get_account_by_openid_or_email(self, mock_account_model, mock_get_account, user_info, mock_account):
# Test OpenID found
mock_account_model.get_by_openid.return_value = mock_account
result = _get_account_by_openid_or_email("github", user_info)