Skip to content

Commit c37f8ff

Browse files
committed
Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2 runtimes. Since we now only support py36 and later, we can use the standard lib unittest.mock module instead. Change-Id: I3be6c40ef61e0334cab860689abbee84f5d19265
1 parent 2612ba1 commit c37f8ff

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

designateclient/tests/v2/test_nameservers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
16-
from mock import patch
16+
from unittest.mock import patch
1717

1818
from designateclient.tests import v2
1919
from designateclient.v2 import zones

designateclient/tests/v2/test_recordsets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
16+
from unittest.mock import patch
1617
import uuid
1718

18-
from mock import patch
1919
import testtools
2020

2121
from designateclient import exceptions

designateclient/tests/v2/test_timeout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from keystoneauth1.identity import generic
1818
from keystoneauth1 import session as keystone_session
19-
from mock import Mock
19+
from unittest.mock import Mock
2020

2121
from designateclient.tests import v2
2222
from designateclient.v2.client import Client

0 commit comments

Comments
 (0)