- Update to version 2.40.1 * Disable logging response body for async logs (#1756) - from version 2.40.0 * Add request response logging to auth (#1678) * Correct webauthn JSON parsing to be compliant with standard. (#1658) - from version 2.39.0 * Adds GA support for X.509 workload identity federation (#1695) * Add impersonated SA via local ADC support for fetch_id_token (#1740) * Add missing packaging dependency for feature requiring urllib3 (#1732) * Add request timeout for MDS requests (#1699) * Explicitly declare support for Python 3.13 ([#1741) - Refresh python-google-auth-no-mock.patch OBS-URL: https://build.opensuse.org/request/show/1278404 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=112
466 lines
18 KiB
Diff
466 lines
18 KiB
Diff
diff -Nru google_auth-2.40.1.orig/tests/compute_engine/test_credentials.py google_auth-2.40.1/tests/compute_engine/test_credentials.py
|
|
--- google_auth-2.40.1.orig/tests/compute_engine/test_credentials.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/compute_engine/test_credentials.py 2025-05-19 15:07:30.223872541 +0200
|
|
@@ -14,7 +14,7 @@
|
|
import base64
|
|
import datetime
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
import responses # type: ignore
|
|
|
|
diff -Nru google_auth-2.40.1.orig/tests/compute_engine/test__metadata.py google_auth-2.40.1/tests/compute_engine/test__metadata.py
|
|
--- google_auth-2.40.1.orig/tests/compute_engine/test__metadata.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/compute_engine/test__metadata.py 2025-05-19 15:07:30.225149286 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/conftest.py google_auth-2.40.1/tests/conftest.py
|
|
--- google_auth-2.40.1.orig/tests/conftest.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/conftest.py 2025-05-19 15:07:30.179812111 +0200
|
|
@@ -15,7 +15,7 @@
|
|
import os
|
|
import sys
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
|
|
diff -Nru google_auth-2.40.1.orig/tests/crypt/test__python_rsa.py google_auth-2.40.1/tests/crypt/test__python_rsa.py
|
|
--- google_auth-2.40.1.orig/tests/crypt/test__python_rsa.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/crypt/test__python_rsa.py 2025-05-19 15:07:30.237800193 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
from pyasn1_modules import pem # type: ignore
|
|
import pytest # type: ignore
|
|
import rsa # type: ignore
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_challenges.py google_auth-2.40.1/tests/oauth2/test_challenges.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_challenges.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_challenges.py 2025-05-19 15:07:30.211896068 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import os
|
|
import sys
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
import pyu2f # type: ignore
|
|
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test__client.py google_auth-2.40.1/tests/oauth2/test__client.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test__client.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test__client.py 2025-05-19 15:07:30.205705092 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import os
|
|
import urllib
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_credentials.py google_auth-2.40.1/tests/oauth2/test_credentials.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_credentials.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_credentials.py 2025-05-19 15:07:30.208338653 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import pickle
|
|
import sys
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_gdch_credentials.py google_auth-2.40.1/tests/oauth2/test_gdch_credentials.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_gdch_credentials.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_gdch_credentials.py 2025-05-19 15:07:30.202082893 +0200
|
|
@@ -17,7 +17,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
import requests
|
|
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_id_token.py google_auth-2.40.1/tests/oauth2/test_id_token.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_id_token.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_id_token.py 2025-05-19 15:07:30.203228138 +0200
|
|
@@ -15,7 +15,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import environment_vars
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_reauth.py google_auth-2.40.1/tests/oauth2/test_reauth.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_reauth.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_reauth.py 2025-05-19 15:07:30.209267947 +0200
|
|
@@ -14,7 +14,7 @@
|
|
|
|
import copy
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import exceptions
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_service_account.py google_auth-2.40.1/tests/oauth2/test_service_account.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_service_account.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_service_account.py 2025-05-19 15:07:30.207039816 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_sts.py google_auth-2.40.1/tests/oauth2/test_sts.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_sts.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_sts.py 2025-05-19 15:07:30.212899744 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import json
|
|
import urllib
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import exceptions
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_webauthn_handler_factory.py google_auth-2.40.1/tests/oauth2/test_webauthn_handler_factory.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_webauthn_handler_factory.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_webauthn_handler_factory.py 2025-05-19 15:07:30.215590103 +0200
|
|
@@ -1,4 +1,4 @@
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.oauth2 import webauthn_handler
|
|
diff -Nru google_auth-2.40.1.orig/tests/oauth2/test_webauthn_handler.py google_auth-2.40.1/tests/oauth2/test_webauthn_handler.py
|
|
--- google_auth-2.40.1.orig/tests/oauth2/test_webauthn_handler.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/oauth2/test_webauthn_handler.py 2025-05-19 15:07:30.204282500 +0200
|
|
@@ -1,7 +1,7 @@
|
|
import json
|
|
import struct
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import exceptions
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_app_engine.py google_auth-2.40.1/tests/test_app_engine.py
|
|
--- google_auth-2.40.1.orig/tests/test_app_engine.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_app_engine.py 2025-05-19 15:07:30.193993141 +0200
|
|
@@ -14,7 +14,7 @@
|
|
|
|
import datetime
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import app_engine
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_aws.py google_auth-2.40.1/tests/test_aws.py
|
|
--- google_auth-2.40.1.orig/tests/test_aws.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_aws.py 2025-05-19 15:07:30.247725978 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import os
|
|
import urllib.parse
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers, external_account
|
|
diff -Nru google_auth-2.40.1.orig/tests/test__cloud_sdk.py google_auth-2.40.1/tests/test__cloud_sdk.py
|
|
--- google_auth-2.40.1.orig/tests/test__cloud_sdk.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test__cloud_sdk.py 2025-05-19 15:07:30.197617443 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import subprocess
|
|
import sys
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _cloud_sdk
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_credentials.py google_auth-2.40.1/tests/test_credentials.py
|
|
--- google_auth-2.40.1.orig/tests/test_credentials.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_credentials.py 2025-05-19 15:07:30.218144995 +0200
|
|
@@ -14,7 +14,7 @@
|
|
|
|
import datetime
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/test__default.py google_auth-2.40.1/tests/test__default.py
|
|
--- google_auth-2.40.1.orig/tests/test__default.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test__default.py 2025-05-19 15:07:30.219234363 +0200
|
|
@@ -15,7 +15,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _default
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_downscoped.py google_auth-2.40.1/tests/test_downscoped.py
|
|
--- google_auth-2.40.1.orig/tests/test_downscoped.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_downscoped.py 2025-05-19 15:07:30.222168185 +0200
|
|
@@ -17,7 +17,7 @@
|
|
import json
|
|
import urllib
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/test__exponential_backoff.py google_auth-2.40.1/tests/test__exponential_backoff.py
|
|
--- google_auth-2.40.1.orig/tests/test__exponential_backoff.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test__exponential_backoff.py 2025-05-19 15:07:30.176033185 +0200
|
|
@@ -12,7 +12,7 @@
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _exponential_backoff
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_external_account_authorized_user.py google_auth-2.40.1/tests/test_external_account_authorized_user.py
|
|
--- google_auth-2.40.1.orig/tests/test_external_account_authorized_user.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_external_account_authorized_user.py 2025-05-19 15:07:30.220600117 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import http.client as http_client
|
|
import json
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import exceptions
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_external_account.py google_auth-2.40.1/tests/test_external_account.py
|
|
--- google_auth-2.40.1.orig/tests/test_external_account.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_external_account.py 2025-05-19 15:07:30.176996435 +0200
|
|
@@ -17,7 +17,7 @@
|
|
import json
|
|
import urllib
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_iam.py google_auth-2.40.1/tests/test_iam.py
|
|
--- google_auth-2.40.1.orig/tests/test_iam.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_iam.py 2025-05-19 15:07:30.228143592 +0200
|
|
@@ -17,7 +17,7 @@
|
|
import http.client as http_client
|
|
import json
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_identity_pool.py google_auth-2.40.1/tests/test_identity_pool.py
|
|
--- google_auth-2.40.1.orig/tests/test_identity_pool.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_identity_pool.py 2025-05-19 15:07:30.228800019 +0200
|
|
@@ -19,7 +19,7 @@
|
|
import os
|
|
import urllib
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
from OpenSSL import crypto
|
|
import pytest # type: ignore
|
|
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_impersonated_credentials.py google_auth-2.40.1/tests/test_impersonated_credentials.py
|
|
--- google_auth-2.40.1.orig/tests/test_impersonated_credentials.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_impersonated_credentials.py 2025-05-19 15:07:30.245366738 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_jwt.py google_auth-2.40.1/tests/test_jwt.py
|
|
--- google_auth-2.40.1.orig/tests/test_jwt.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_jwt.py 2025-05-19 15:07:30.231135724 +0200
|
|
@@ -17,7 +17,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_metrics.py google_auth-2.40.1/tests/test_metrics.py
|
|
--- google_auth-2.40.1.orig/tests/test_metrics.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_metrics.py 2025-05-19 15:07:30.200402021 +0200
|
|
@@ -14,7 +14,7 @@
|
|
|
|
import platform
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
|
|
from google.auth import metrics
|
|
from google.auth import version
|
|
diff -Nru google_auth-2.40.1.orig/tests/test__oauth2client.py google_auth-2.40.1/tests/test__oauth2client.py
|
|
--- google_auth-2.40.1.orig/tests/test__oauth2client.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test__oauth2client.py 2025-05-19 15:07:30.194977430 +0200
|
|
@@ -17,7 +17,7 @@
|
|
import os
|
|
import sys
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
try:
|
|
diff -Nru google_auth-2.40.1.orig/tests/test_pluggable.py google_auth-2.40.1/tests/test_pluggable.py
|
|
--- google_auth-2.40.1.orig/tests/test_pluggable.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test_pluggable.py 2025-05-19 15:07:30.246306653 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import os
|
|
import subprocess
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import exceptions
|
|
diff -Nru google_auth-2.40.1.orig/tests/test__refresh_worker.py google_auth-2.40.1/tests/test__refresh_worker.py
|
|
--- google_auth-2.40.1.orig/tests/test__refresh_worker.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/test__refresh_worker.py 2025-05-19 15:07:30.239830936 +0200
|
|
@@ -17,7 +17,7 @@
|
|
import threading
|
|
import time
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _refresh_worker, credentials, exceptions
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/aio/test_aiohttp.py google_auth-2.40.1/tests/transport/aio/test_aiohttp.py
|
|
--- google_auth-2.40.1.orig/tests/transport/aio/test_aiohttp.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/aio/test_aiohttp.py 2025-05-19 15:07:30.184078804 +0200
|
|
@@ -15,7 +15,7 @@
|
|
import asyncio
|
|
|
|
from aioresponses import aioresponses # type: ignore
|
|
-from mock import AsyncMock, Mock, patch
|
|
+from unittest.mock import AsyncMock, Mock, patch
|
|
import pytest # type: ignore
|
|
import pytest_asyncio # type: ignore
|
|
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/aio/test_sessions.py google_auth-2.40.1/tests/transport/aio/test_sessions.py
|
|
--- google_auth-2.40.1.orig/tests/transport/aio/test_sessions.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/aio/test_sessions.py 2025-05-19 15:07:30.182499004 +0200
|
|
@@ -16,7 +16,7 @@
|
|
from typing import AsyncGenerator
|
|
|
|
from aioresponses import aioresponses # type: ignore
|
|
-from mock import Mock, patch
|
|
+from unittest.mock import Mock, patch
|
|
import pytest # type: ignore
|
|
|
|
from google.auth.aio.credentials import AnonymousCredentials
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/test__custom_tls_signer.py google_auth-2.40.1/tests/transport/test__custom_tls_signer.py
|
|
--- google_auth-2.40.1.orig/tests/transport/test__custom_tls_signer.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/test__custom_tls_signer.py 2025-05-19 15:07:30.184931012 +0200
|
|
@@ -15,7 +15,7 @@
|
|
import ctypes
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore
|
|
import urllib3.contrib.pyopenssl # type: ignore
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/test_grpc.py google_auth-2.40.1/tests/transport/test_grpc.py
|
|
--- google_auth-2.40.1.orig/tests/transport/test_grpc.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/test_grpc.py 2025-05-19 15:07:30.186261579 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import os
|
|
import time
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import _helpers
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/test__mtls_helper.py google_auth-2.40.1/tests/transport/test__mtls_helper.py
|
|
--- google_auth-2.40.1.orig/tests/transport/test__mtls_helper.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/test__mtls_helper.py 2025-05-19 15:07:30.188192466 +0200
|
|
@@ -15,7 +15,7 @@
|
|
import os
|
|
import re
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
from OpenSSL import crypto
|
|
import pytest # type: ignore
|
|
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/test_mtls.py google_auth-2.40.1/tests/transport/test_mtls.py
|
|
--- google_auth-2.40.1.orig/tests/transport/test_mtls.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/test_mtls.py 2025-05-19 15:07:30.189699778 +0200
|
|
@@ -12,7 +12,7 @@
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest # type: ignore
|
|
|
|
from google.auth import exceptions
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/test_requests.py google_auth-2.40.1/tests/transport/test_requests.py
|
|
--- google_auth-2.40.1.orig/tests/transport/test_requests.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/test_requests.py 2025-05-19 15:07:30.191274839 +0200
|
|
@@ -19,7 +19,7 @@
|
|
import sys
|
|
|
|
import freezegun
|
|
-import mock
|
|
+from unittest import mock
|
|
import OpenSSL
|
|
import pytest # type: ignore
|
|
import requests
|
|
diff -Nru google_auth-2.40.1.orig/tests/transport/test_urllib3.py google_auth-2.40.1/tests/transport/test_urllib3.py
|
|
--- google_auth-2.40.1.orig/tests/transport/test_urllib3.py 2025-05-07 03:00:59.000000000 +0200
|
|
+++ google_auth-2.40.1/tests/transport/test_urllib3.py 2025-05-19 15:07:30.181238200 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import os
|
|
import sys
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import OpenSSL
|
|
import pytest # type: ignore
|
|
import urllib3 # type: ignore
|