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