File tree Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Expand file tree Collapse file tree 5 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 11import aiounittest
22
33from aiohttp import ClientSession
4- from mock import patch , AsyncMock
4+ try :
5+ from unittest .mock import patch , AsyncMock
6+ except ImportError :
7+ # Python 3.7
8+ from mock import patch , AsyncMock
59from twilio .http .async_http_client import AsyncTwilioHttpClient
610
711
Original file line number Diff line number Diff line change 33import unittest
44from collections import OrderedDict
55
6- from mock import Mock , patch
6+ try :
7+ from unittest .mock import patch , AsyncMock
8+ except ImportError :
9+ # Python 3.7
10+ from mock import patch , AsyncMock
711from requests import Session
812
913from twilio .base .exceptions import TwilioRestException
Original file line number Diff line number Diff line change 22
33import unittest
44
5- from mock import patch , Mock
5+ try :
6+ from unittest .mock import patch , AsyncMock
7+ except ImportError :
8+ # Python 3.7
9+ from mock import patch , AsyncMock
610from requests import Request
711from requests import Session
812
Original file line number Diff line number Diff line change 22import unittest
33
44import jwt as jwt_lib
5- from mock import patch
5+ try :
6+ from unittest .mock import patch , AsyncMock
7+ except ImportError :
8+ # Python 3.7
9+ from mock import patch , AsyncMock
610
711from twilio .jwt import Jwt , JwtDecodeError
812
Original file line number Diff line number Diff line change 11import unittest
22import aiounittest
33
4- from mock import AsyncMock , Mock
4+ try :
5+ from unittest .mock import patch , AsyncMock
6+ except ImportError :
7+ # Python 3.7
8+ from mock import patch , AsyncMock
59from twilio .http .response import Response
610from twilio .rest import Client
711
You can’t perform that action at this time.
0 commit comments