rdobuilder 1b1084
From a569bb0e56b9f26855d6933a80efce991af2438a Mon Sep 17 00:00:00 2001
rdobuilder 1b1084
From: Major Hayden <major@redhat.com>
rdobuilder 1b1084
Date: Wed, 15 Dec 2021 13:30:32 -0600
rdobuilder 1b1084
Subject: [PATCH] Use unittest.mock
rdobuilder 1b1084
rdobuilder 1b1084
---
rdobuilder 1b1084
 tests/asyncio/future/test_async_future.py                   | 2 +-
rdobuilder 1b1084
 tests/asyncio/gapic/test_method_async.py                    | 2 +-
rdobuilder 1b1084
 tests/asyncio/operations_v1/test_operations_async_client.py | 2 +-
rdobuilder 1b1084
 tests/asyncio/test_grpc_helpers_async.py                    | 2 +-
rdobuilder 1b1084
 tests/asyncio/test_operation_async.py                       | 2 +-
rdobuilder 1b1084
 tests/asyncio/test_page_iterator_async.py                   | 2 +-
rdobuilder 1b1084
 tests/asyncio/test_retry_async.py                           | 2 +-
rdobuilder 1b1084
 tests/unit/future/test__helpers.py                          | 2 +-
rdobuilder 1b1084
 tests/unit/future/test_polling.py                           | 2 +-
rdobuilder 1b1084
 tests/unit/gapic/test_method.py                             | 2 +-
rdobuilder 1b1084
 tests/unit/operations_v1/test_operations_rest_client.py     | 2 +-
rdobuilder 1b1084
 tests/unit/test_bidi.py                                     | 2 +-
rdobuilder 1b1084
 tests/unit/test_exceptions.py                               | 2 +-
rdobuilder 1b1084
 tests/unit/test_grpc_helpers.py                             | 2 +-
rdobuilder 1b1084
 tests/unit/test_operation.py                                | 2 +-
rdobuilder 1b1084
 tests/unit/test_page_iterator.py                            | 2 +-
rdobuilder 1b1084
 tests/unit/test_path_template.py                            | 2 +-
rdobuilder 1b1084
 tests/unit/test_retry.py                                    | 2 +-
rdobuilder 1b1084
 tests/unit/test_timeout.py                                  | 2 +-
rdobuilder 1b1084
 19 files changed, 19 insertions(+), 19 deletions(-)
rdobuilder 1b1084
rdobuilder 1b1084
diff --git a/tests/asyncio/future/test_async_future.py b/tests/asyncio/future/test_async_future.py
rdobuilder 1b1084
index 1e9ae33..1aaf132 100644
rdobuilder 1b1084
--- a/tests/asyncio/future/test_async_future.py
rdobuilder 1b1084
+++ b/tests/asyncio/future/test_async_future.py
rdobuilder b21a08
@@ -14,7 +14,7 @@
rdobuilder b21a08
 
rdobuilder b21a08
 import asyncio
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core import exceptions
rdobuilder 1b1084
diff --git a/tests/asyncio/gapic/test_method_async.py b/tests/asyncio/gapic/test_method_async.py
rdobuilder 1b1084
index 1410747..7990e46 100644
rdobuilder 1b1084
--- a/tests/asyncio/gapic/test_method_async.py
rdobuilder 1b1084
+++ b/tests/asyncio/gapic/test_method_async.py
rdobuilder 1b1084
@@ -14,7 +14,7 @@
rdobuilder 1b1084
 
rdobuilder b21a08
 import datetime
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/asyncio/operations_v1/test_operations_async_client.py b/tests/asyncio/operations_v1/test_operations_async_client.py
rdobuilder 1b1084
index 47c3b4b..67fc941 100644
rdobuilder 1b1084
--- a/tests/asyncio/operations_v1/test_operations_async_client.py
rdobuilder 1b1084
+++ b/tests/asyncio/operations_v1/test_operations_async_client.py
rdobuilder 1b1084
@@ -12,7 +12,7 @@
rdobuilder 1b1084
 # See the License for the specific language governing permissions and
rdobuilder b21a08
 # limitations under the License.
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/asyncio/test_grpc_helpers_async.py b/tests/asyncio/test_grpc_helpers_async.py
rdobuilder 1b1084
index 3681a40..cc1a5a4 100644
rdobuilder 1b1084
--- a/tests/asyncio/test_grpc_helpers_async.py
rdobuilder 1b1084
+++ b/tests/asyncio/test_grpc_helpers_async.py
rdobuilder 1b1084
@@ -12,7 +12,7 @@
rdobuilder 1b1084
 # See the License for the specific language governing permissions and
rdobuilder 1b1084
 # limitations under the License.
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder 1b1084
 import pytest  # noqa: I202
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/asyncio/test_operation_async.py b/tests/asyncio/test_operation_async.py
rdobuilder 1b1084
index 26ad7ce..662d956 100644
rdobuilder 1b1084
--- a/tests/asyncio/test_operation_async.py
rdobuilder 1b1084
+++ b/tests/asyncio/test_operation_async.py
rdobuilder b21a08
@@ -13,7 +13,7 @@
rdobuilder b21a08
 # limitations under the License.
rdobuilder b21a08
 
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/asyncio/test_page_iterator_async.py b/tests/asyncio/test_page_iterator_async.py
rdobuilder 1b1084
index 75f9e1c..c3f5d55 100644
rdobuilder 1b1084
--- a/tests/asyncio/test_page_iterator_async.py
rdobuilder 1b1084
+++ b/tests/asyncio/test_page_iterator_async.py
rdobuilder b21a08
@@ -14,7 +14,7 @@
rdobuilder b21a08
 
rdobuilder b21a08
 import inspect
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core import page_iterator_async
rdobuilder 1b1084
diff --git a/tests/asyncio/test_retry_async.py b/tests/asyncio/test_retry_async.py
rdobuilder 1b1084
index 873caaf..1f57470 100644
rdobuilder 1b1084
--- a/tests/asyncio/test_retry_async.py
rdobuilder 1b1084
+++ b/tests/asyncio/test_retry_async.py
rdobuilder b21a08
@@ -15,7 +15,7 @@
rdobuilder b21a08
 import datetime
rdobuilder b21a08
 import re
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core import exceptions
rdobuilder 1b1084
diff --git a/tests/unit/future/test__helpers.py b/tests/unit/future/test__helpers.py
rdobuilder 1b1084
index 98afc59..a37efdd 100644
rdobuilder 1b1084
--- a/tests/unit/future/test__helpers.py
rdobuilder 1b1084
+++ b/tests/unit/future/test__helpers.py
rdobuilder b21a08
@@ -12,7 +12,7 @@
rdobuilder b21a08
 # See the License for the specific language governing permissions and
rdobuilder b21a08
 # limitations under the License.
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core.future import _helpers
rdobuilder b21a08
 
rdobuilder 1b1084
diff --git a/tests/unit/future/test_polling.py b/tests/unit/future/test_polling.py
rdobuilder 1b1084
index 2381d03..79f19db 100644
rdobuilder 1b1084
--- a/tests/unit/future/test_polling.py
rdobuilder 1b1084
+++ b/tests/unit/future/test_polling.py
rdobuilder b21a08
@@ -16,7 +16,7 @@ import concurrent.futures
rdobuilder b21a08
 import threading
rdobuilder b21a08
 import time
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core import exceptions, retry
rdobuilder 1b1084
diff --git a/tests/unit/gapic/test_method.py b/tests/unit/gapic/test_method.py
rdobuilder 1b1084
index 9778d23..28323da 100644
rdobuilder 1b1084
--- a/tests/unit/gapic/test_method.py
rdobuilder 1b1084
+++ b/tests/unit/gapic/test_method.py
rdobuilder b21a08
@@ -14,7 +14,7 @@
rdobuilder b21a08
 
rdobuilder b21a08
 import datetime
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder 1b1084
 import pytest
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/unit/operations_v1/test_operations_rest_client.py b/tests/unit/operations_v1/test_operations_rest_client.py
rdobuilder 1b1084
index dddf6b7..f40d780 100644
rdobuilder 1b1084
--- a/tests/unit/operations_v1/test_operations_rest_client.py
rdobuilder 1b1084
+++ b/tests/unit/operations_v1/test_operations_rest_client.py
rdobuilder 1b1084
@@ -15,7 +15,7 @@
rdobuilder 1b1084
 #
rdobuilder 1b1084
 import os
rdobuilder 1b1084
 
rdobuilder 1b1084
-import mock
rdobuilder 1b1084
+from unittest import mock
rdobuilder 1b1084
 import pytest
rdobuilder 1b1084
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/unit/test_bidi.py b/tests/unit/test_bidi.py
rdobuilder 1b1084
index 7fb1620..896f653 100644
rdobuilder 1b1084
--- a/tests/unit/test_bidi.py
rdobuilder 1b1084
+++ b/tests/unit/test_bidi.py
rdobuilder 1b1084
@@ -17,7 +17,7 @@ import logging
rdobuilder 1b1084
 import queue
rdobuilder b21a08
 import threading
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/unit/test_exceptions.py b/tests/unit/test_exceptions.py
rdobuilder 1b1084
index 622f58a..4aebf7c 100644
rdobuilder 1b1084
--- a/tests/unit/test_exceptions.py
rdobuilder 1b1084
+++ b/tests/unit/test_exceptions.py
rdobuilder 1b1084
@@ -15,7 +15,7 @@
rdobuilder 1b1084
 import http.client
rdobuilder b21a08
 import json
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder 1b1084
 import pytest
rdobuilder b21a08
 import requests
rdobuilder b21a08
 
rdobuilder 1b1084
diff --git a/tests/unit/test_grpc_helpers.py b/tests/unit/test_grpc_helpers.py
rdobuilder 1b1084
index ca969e4..95b1a24 100644
rdobuilder 1b1084
--- a/tests/unit/test_grpc_helpers.py
rdobuilder 1b1084
+++ b/tests/unit/test_grpc_helpers.py
rdobuilder 1b1084
@@ -12,7 +12,7 @@
rdobuilder 1b1084
 # See the License for the specific language governing permissions and
rdobuilder b21a08
 # limitations under the License.
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/unit/test_operation.py b/tests/unit/test_operation.py
rdobuilder 1b1084
index 22e23bc..8ffee10 100644
rdobuilder 1b1084
--- a/tests/unit/test_operation.py
rdobuilder 1b1084
+++ b/tests/unit/test_operation.py
rdobuilder b21a08
@@ -13,7 +13,7 @@
rdobuilder b21a08
 # limitations under the License.
rdobuilder b21a08
 
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder 1b1084
 import pytest
rdobuilder b21a08
 
rdobuilder 1b1084
 try:
rdobuilder 1b1084
diff --git a/tests/unit/test_page_iterator.py b/tests/unit/test_page_iterator.py
rdobuilder 1b1084
index a44e998..56be26f 100644
rdobuilder 1b1084
--- a/tests/unit/test_page_iterator.py
rdobuilder 1b1084
+++ b/tests/unit/test_page_iterator.py
rdobuilder b21a08
@@ -15,7 +15,7 @@
rdobuilder b21a08
 import math
rdobuilder b21a08
 import types
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core import page_iterator
rdobuilder 1b1084
diff --git a/tests/unit/test_path_template.py b/tests/unit/test_path_template.py
rdobuilder 1b1084
index 2c5216e..a72f25f 100644
rdobuilder 1b1084
--- a/tests/unit/test_path_template.py
rdobuilder 1b1084
+++ b/tests/unit/test_path_template.py
rdobuilder b21a08
@@ -14,7 +14,7 @@
rdobuilder b21a08
 
rdobuilder b21a08
 from __future__ import unicode_literals
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core import path_template
rdobuilder 1b1084
diff --git a/tests/unit/test_retry.py b/tests/unit/test_retry.py
rdobuilder 1b1084
index 74c5d77..b7462fb 100644
rdobuilder 1b1084
--- a/tests/unit/test_retry.py
rdobuilder 1b1084
+++ b/tests/unit/test_retry.py
rdobuilder b21a08
@@ -16,7 +16,7 @@ import datetime
rdobuilder b21a08
 import itertools
rdobuilder b21a08
 import re
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 import pytest
rdobuilder b21a08
 import requests.exceptions
rdobuilder b21a08
 
rdobuilder 1b1084
diff --git a/tests/unit/test_timeout.py b/tests/unit/test_timeout.py
rdobuilder 1b1084
index 30d624e..c13e499 100644
rdobuilder 1b1084
--- a/tests/unit/test_timeout.py
rdobuilder 1b1084
+++ b/tests/unit/test_timeout.py
rdobuilder b21a08
@@ -15,7 +15,7 @@
rdobuilder b21a08
 import datetime
rdobuilder b21a08
 import itertools
rdobuilder b21a08
 
rdobuilder b21a08
-import mock
rdobuilder b21a08
+from unittest import mock
rdobuilder b21a08
 
rdobuilder b21a08
 from google.api_core import timeout
rdobuilder b21a08
 
rdobuilder 1b1084
-- 
rdobuilder 1b1084
2.33.1
rdobuilder 1b1084