Skip to content

Commit

Permalink
use new unittest.mock from standard library
Browse files Browse the repository at this point in the history
  • Loading branch information
a-detiste committed May 2, 2024
1 parent 4ed7fec commit 4350077
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Sphinx>=1.8.0
mock
pytest
pytest-cov
aiounittest
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/http/test_async_http_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import aiounittest
from unittest.mock import patch, AsyncMock

from aiohttp import ClientSession
from mock import patch, AsyncMock
from twilio.http.async_http_client import AsyncTwilioHttpClient


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/http/test_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os
import unittest
from collections import OrderedDict
from unittest.mock import Mock, patch

from mock import Mock, patch
from requests import Session

from twilio.base.exceptions import TwilioRestException
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/http/test_validation_client.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-

import unittest
from unittest.mock import patch, Mock

from mock import patch, Mock
from requests import Request
from requests import Session

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/jwt/test_jwt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import time as real_time
import unittest
from unittest.mock import patch

import jwt as jwt_lib
from mock import patch

from twilio.jwt import Jwt, JwtDecodeError

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rest/test_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
import aiounittest
from unittest.mock import AsyncMock, Mock

from mock import AsyncMock, Mock
from twilio.http.response import Response
from twilio.rest import Client

Expand Down

0 comments on commit 4350077

Please sign in to comment.