File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import asyncio
16- from unittest .mock import AsyncMock , Mock , patch
16+ from unittest .mock import Mock , patch
17+ try :
18+ from unittest .mock import AsyncMock
19+ except ImportError :
20+ # Fallback for Python < 3.8
21+ from mock import AsyncMock
1722
1823from aioresponses import aioresponses # type: ignore
1924import pytest # type: ignore
Original file line number Diff line number Diff line change 1414
1515import copy
1616from unittest import mock
17+ try :
18+ from unittest .mock import AsyncMock
19+ except ImportError :
20+ # Fallback for Python < 3.8
21+ from mock import AsyncMock
1722
1823import pytest # type: ignore
1924
2227from google .oauth2 import reauth
2328
2429
25- MOCK_REQUEST = mock . AsyncMock (spec = ["transport.Request" ])
30+ MOCK_REQUEST = AsyncMock (spec = ["transport.Request" ])
2631CHALLENGES_RESPONSE_TEMPLATE = {
2732 "status" : "CHALLENGE_REQUIRED" ,
2833 "sessionId" : "123" ,
You can’t perform that action at this time.
0 commit comments