2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/compute_engine/test_credentials.py google-auth-2.30.0/tests/compute_engine/test_credentials.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/compute_engine/test_credentials.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/compute_engine/test_credentials.py 2024-07-04 10:10:10.154047522 +0200
|
2022-06-08 11:45:48 +02:00
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
import base64
|
|
|
|
import datetime
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
import responses # type: ignore
|
|
|
|
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/compute_engine/test__metadata.py google-auth-2.30.0/tests/compute_engine/test__metadata.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/compute_engine/test__metadata.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/compute_engine/test__metadata.py 2024-07-04 10:10:10.157380876 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -18,7 +18,7 @@
|
2023-06-27 13:07:04 +02:00
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
|
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/conftest.py google-auth-2.30.0/tests/conftest.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/conftest.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/conftest.py 2024-07-04 10:10:10.064046957 +0200
|
2022-06-08 11:45:48 +02:00
|
|
|
@@ -15,7 +15,7 @@
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
|
|
|
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/crypt/test__python_rsa.py google-auth-2.30.0/tests/crypt/test__python_rsa.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/crypt/test__python_rsa.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/crypt/test__python_rsa.py 2024-07-04 10:10:10.184047711 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -16,7 +16,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
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
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_challenges.py google-auth-2.30.0/tests/oauth2/test_challenges.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_challenges.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_challenges.py 2024-07-04 10:10:10.130714042 +0200
|
|
|
|
@@ -18,7 +18,7 @@
|
|
|
|
import os
|
2022-06-08 11:45:48 +02:00
|
|
|
import sys
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
import pyu2f # type: ignore
|
|
|
|
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test__client.py google-auth-2.30.0/tests/oauth2/test__client.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test__client.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test__client.py 2024-07-04 10:10:10.117380625 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -18,7 +18,7 @@
|
2023-06-27 13:07:04 +02:00
|
|
|
import os
|
2023-09-21 18:51:37 +02:00
|
|
|
import urllib
|
2023-06-27 13:07:04 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
|
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_credentials.py google-auth-2.30.0/tests/oauth2/test_credentials.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_credentials.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_credentials.py 2024-07-04 10:10:10.124047334 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -18,7 +18,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import pickle
|
|
|
|
import sys
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_gdch_credentials.py google-auth-2.30.0/tests/oauth2/test_gdch_credentials.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_gdch_credentials.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_gdch_credentials.py 2024-07-04 10:10:10.110713917 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -17,7 +17,7 @@
|
2022-09-08 17:39:55 +02:00
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
import requests
|
2023-09-21 18:51:37 +02:00
|
|
|
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_id_token.py google-auth-2.30.0/tests/oauth2/test_id_token.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_id_token.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_id_token.py 2024-07-04 10:10:10.110713917 +0200
|
2022-06-08 11:45:48 +02:00
|
|
|
@@ -15,7 +15,7 @@
|
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
|
|
|
from google.auth import environment_vars
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_reauth.py google-auth-2.30.0/tests/oauth2/test_reauth.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_reauth.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_reauth.py 2024-07-04 10:10:10.127380688 +0200
|
2022-06-08 11:45:48 +02:00
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
|
|
|
|
import copy
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
|
|
|
from google.auth import exceptions
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_service_account.py google-auth-2.30.0/tests/oauth2/test_service_account.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_service_account.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_service_account.py 2024-07-04 10:10:10.120713979 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -16,7 +16,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
2023-06-27 13:07:04 +02:00
|
|
|
import pytest # type: ignore
|
2022-06-08 11:45:48 +02:00
|
|
|
|
2023-09-21 18:51:37 +02:00
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_sts.py google-auth-2.30.0/tests/oauth2/test_sts.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_sts.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_sts.py 2024-07-04 10:10:10.134047397 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -16,7 +16,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import json
|
2023-09-21 18:51:37 +02:00
|
|
|
import urllib
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
|
|
|
|
from google.auth import exceptions
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/oauth2/test_webauthn_handler_factory.py google-auth-2.30.0/tests/oauth2/test_webauthn_handler_factory.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_webauthn_handler_factory.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_webauthn_handler_factory.py 2024-07-04 10:10:10.137380751 +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.30.0.orig/tests/oauth2/test_webauthn_handler.py google-auth-2.30.0/tests/oauth2/test_webauthn_handler.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/oauth2/test_webauthn_handler.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/oauth2/test_webauthn_handler.py 2024-07-04 10:10:10.114047271 +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.30.0.orig/tests/test_app_engine.py google-auth-2.30.0/tests/test_app_engine.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_app_engine.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_app_engine.py 2024-07-04 10:10:10.090713791 +0200
|
2023-06-27 13:07:04 +02:00
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
|
|
|
|
import datetime
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
2023-06-27 13:07:04 +02:00
|
|
|
from google.auth import app_engine
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_aws.py google-auth-2.30.0/tests/test_aws.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_aws.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_aws.py 2024-07-04 10:10:10.204047836 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -18,7 +18,7 @@
|
2023-02-22 21:10:17 +01:00
|
|
|
import os
|
2023-09-21 18:51:37 +02:00
|
|
|
import urllib.parse
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
|
2024-05-17 15:13:32 +02:00
|
|
|
from google.auth import _helpers, external_account
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test__cloud_sdk.py google-auth-2.30.0/tests/test__cloud_sdk.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test__cloud_sdk.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test__cloud_sdk.py 2024-07-04 10:10:10.100713854 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -18,7 +18,7 @@
|
2023-06-27 13:07:04 +02:00
|
|
|
import subprocess
|
2023-03-15 15:34:28 +01:00
|
|
|
import sys
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-03-15 15:34:28 +01:00
|
|
|
|
2023-06-27 13:07:04 +02:00
|
|
|
from google.auth import _cloud_sdk
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_credentials.py google-auth-2.30.0/tests/test_credentials.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_credentials.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_credentials.py 2024-07-04 10:10:10.144047460 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
|
|
|
|
import datetime
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test__default.py google-auth-2.30.0/tests/test__default.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test__default.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test__default.py 2024-07-04 10:10:10.147380814 +0200
|
2023-06-27 13:07:04 +02:00
|
|
|
@@ -15,7 +15,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import json
|
2023-03-15 15:34:28 +01:00
|
|
|
import os
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-06-27 13:07:04 +02:00
|
|
|
|
|
|
|
from google.auth import _default
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_downscoped.py google-auth-2.30.0/tests/test_downscoped.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_downscoped.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_downscoped.py 2024-07-04 10:10:10.154047522 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -17,7 +17,7 @@
|
2023-03-15 15:34:28 +01:00
|
|
|
import json
|
2023-09-21 18:51:37 +02:00
|
|
|
import urllib
|
2022-10-14 14:17:32 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
2023-03-15 15:34:28 +01:00
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
|
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test__exponential_backoff.py google-auth-2.30.0/tests/test__exponential_backoff.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test__exponential_backoff.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test__exponential_backoff.py 2024-07-04 10:10:10.054046894 +0200
|
2023-06-27 13:07:04 +02:00
|
|
|
@@ -12,7 +12,7 @@
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
|
|
|
|
from google.auth import _exponential_backoff
|
|
|
|
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_external_account_authorized_user.py google-auth-2.30.0/tests/test_external_account_authorized_user.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_external_account_authorized_user.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_external_account_authorized_user.py 2024-07-04 10:10:10.150714168 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -16,7 +16,7 @@
|
2023-09-21 18:51:37 +02:00
|
|
|
import http.client as http_client
|
2022-11-08 08:13:30 +01:00
|
|
|
import json
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-06-27 13:07:04 +02:00
|
|
|
|
2023-09-21 18:51:37 +02:00
|
|
|
from google.auth import exceptions
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_external_account.py google-auth-2.30.0/tests/test_external_account.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_external_account.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_external_account.py 2024-07-04 10:10:10.057380248 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -17,7 +17,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import json
|
2023-09-21 18:51:37 +02:00
|
|
|
import urllib
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
|
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_iam.py google-auth-2.30.0/tests/test_iam.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_iam.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_iam.py 2024-07-04 10:10:10.164047585 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -17,7 +17,7 @@
|
2023-09-21 18:51:37 +02:00
|
|
|
import http.client as http_client
|
2022-06-08 11:45:48 +02:00
|
|
|
import json
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
2023-09-21 18:51:37 +02:00
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_identity_pool.py google-auth-2.30.0/tests/test_identity_pool.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_identity_pool.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_identity_pool.py 2024-07-04 10:10:10.167380939 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -18,7 +18,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import os
|
2023-09-21 18:51:37 +02:00
|
|
|
import urllib
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
|
2024-05-17 15:13:32 +02:00
|
|
|
from google.auth import _helpers, external_account
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_impersonated_credentials.py google-auth-2.30.0/tests/test_impersonated_credentials.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_impersonated_credentials.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_impersonated_credentials.py 2024-07-04 10:10:10.200714482 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -17,7 +17,7 @@
|
2023-09-21 18:51:37 +02:00
|
|
|
import json
|
|
|
|
import os
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
2023-09-21 18:51:37 +02:00
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_jwt.py google-auth-2.30.0/tests/test_jwt.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_jwt.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_jwt.py 2024-07-04 10:10:10.170714294 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -17,7 +17,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_metrics.py google-auth-2.30.0/tests/test_metrics.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_metrics.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_metrics.py 2024-07-04 10:10:10.107380563 +0200
|
2023-06-27 13:07:04 +02:00
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
|
|
|
|
import platform
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
|
|
|
|
from google.auth import metrics
|
|
|
|
from google.auth import version
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test__oauth2client.py google-auth-2.30.0/tests/test__oauth2client.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test__oauth2client.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test__oauth2client.py 2024-07-04 10:10:10.094047145 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -17,7 +17,7 @@
|
2023-06-27 13:07:04 +02:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
2023-09-21 18:51:37 +02:00
|
|
|
try:
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test_pluggable.py google-auth-2.30.0/tests/test_pluggable.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test_pluggable.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test_pluggable.py 2024-07-04 10:10:10.200714482 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -16,7 +16,7 @@
|
2022-09-08 17:39:55 +02:00
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
2023-09-21 18:51:37 +02:00
|
|
|
from google.auth import exceptions
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/test__refresh_worker.py google-auth-2.30.0/tests/test__refresh_worker.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/test__refresh_worker.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/test__refresh_worker.py 2024-07-04 10:10:10.187381065 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -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
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/transport/test__custom_tls_signer.py google-auth-2.30.0/tests/transport/test__custom_tls_signer.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/transport/test__custom_tls_signer.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/transport/test__custom_tls_signer.py 2024-07-04 10:10:10.067380311 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -15,7 +15,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
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
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/transport/test_grpc.py google-auth-2.30.0/tests/transport/test_grpc.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/transport/test_grpc.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/transport/test_grpc.py 2024-07-04 10:10:10.070713666 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -16,7 +16,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import os
|
2023-06-27 13:07:04 +02:00
|
|
|
import time
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import pytest # type: ignore
|
|
|
|
|
2023-06-27 13:07:04 +02:00
|
|
|
from google.auth import _helpers
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/transport/test__mtls_helper.py google-auth-2.30.0/tests/transport/test__mtls_helper.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/transport/test__mtls_helper.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/transport/test__mtls_helper.py 2024-07-04 10:10:10.077380374 +0200
|
2023-06-27 13:07:04 +02:00
|
|
|
@@ -15,7 +15,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import os
|
2023-06-27 13:07:04 +02:00
|
|
|
import re
|
2022-06-08 11:45:48 +02:00
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
2023-06-27 13:07:04 +02:00
|
|
|
from OpenSSL import crypto
|
2022-06-08 11:45:48 +02:00
|
|
|
import pytest # type: ignore
|
|
|
|
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/transport/test_mtls.py google-auth-2.30.0/tests/transport/test_mtls.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/transport/test_mtls.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/transport/test_mtls.py 2024-07-04 10:10:10.080713728 +0200
|
2022-06-08 11:45:48 +02:00
|
|
|
@@ -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
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/transport/test_requests.py google-auth-2.30.0/tests/transport/test_requests.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/transport/test_requests.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/transport/test_requests.py 2024-07-04 10:10:10.084047083 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -19,7 +19,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import sys
|
|
|
|
|
|
|
|
import freezegun
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import OpenSSL
|
|
|
|
import pytest # type: ignore
|
|
|
|
import requests
|
2024-07-04 15:19:17 +02:00
|
|
|
diff -Nru google-auth-2.30.0.orig/tests/transport/test_urllib3.py google-auth-2.30.0/tests/transport/test_urllib3.py
|
|
|
|
--- google-auth-2.30.0.orig/tests/transport/test_urllib3.py 2024-06-07 01:17:33.000000000 +0200
|
|
|
|
+++ google-auth-2.30.0/tests/transport/test_urllib3.py 2024-07-04 10:10:10.064046957 +0200
|
2024-01-04 11:40:39 +01:00
|
|
|
@@ -16,7 +16,7 @@
|
2022-06-08 11:45:48 +02:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
-import mock
|
|
|
|
+from unittest import mock
|
|
|
|
import OpenSSL
|
|
|
|
import pytest # type: ignore
|
2023-09-21 18:51:37 +02:00
|
|
|
import urllib3 # type: ignore
|