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