We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacb93e commit 00d1b74Copy full SHA for 00d1b74
tests/client/test_auth.py
@@ -6,7 +6,6 @@
6
import time
7
from collections.abc import AsyncGenerator
8
from typing import Any
9
-from unittest import mock
10
from unittest.mock import AsyncMock, Mock, patch
11
12
import httpx
@@ -1323,7 +1322,7 @@ async def callback_handler() -> tuple[str, str | None]:
1323
1322
)
1324
1325
# Mock the rest of the OAuth flow
1326
- provider._perform_authorization = mock.AsyncMock(return_value=("test_auth_code", "test_code_verifier"))
+ provider._perform_authorization = AsyncMock(return_value=("test_auth_code", "test_code_verifier"))
1327
1328
# Next should be OAuth metadata discovery
1329
oauth_metadata_request = await auth_flow.asend(discovery_response_2)
0 commit comments