mirror of https://github.com/langgenius/dify.git
[autofix.ci] apply automated fixes
This commit is contained in:
parent
ae9513b4d1
commit
96eab76bfd
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue