forked from pool/python-google-auth-oauthlib
* support google-auth >= 2.46.0 (#433) - from version 1.2.3 * Add upper-bound to google-auth dependency (#423) * Drop support for Python 3.6 * Explicitly declare Python 3.13 support - Drop python-google-auth-oauthlib-no-mock.patch, fixed upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth-oauthlib?expand=0&rev=40
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_flow.py google_auth_oauthlib-1.2.2/tests/unit/test_flow.py
|
|
--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_flow.py 2025-04-22 18:36:18.000000000 +0200
|
|
+++ google_auth_oauthlib-1.2.2/tests/unit/test_flow.py 2025-05-19 15:48:51.119128294 +0200
|
|
@@ -20,7 +20,7 @@
|
|
import re
|
|
import socket
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest
|
|
import requests
|
|
import urllib
|
|
diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_helpers.py google_auth_oauthlib-1.2.2/tests/unit/test_helpers.py
|
|
--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_helpers.py 2025-04-22 18:36:18.000000000 +0200
|
|
+++ google_auth_oauthlib-1.2.2/tests/unit/test_helpers.py 2025-05-19 15:48:51.117975705 +0200
|
|
@@ -16,7 +16,7 @@
|
|
import json
|
|
import os
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest
|
|
|
|
from google.auth import external_account_authorized_user
|
|
diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_interactive.py google_auth_oauthlib-1.2.2/tests/unit/test_interactive.py
|
|
--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_interactive.py 2025-04-22 18:36:18.000000000 +0200
|
|
+++ google_auth_oauthlib-1.2.2/tests/unit/test_interactive.py 2025-05-19 15:48:51.116736793 +0200
|
|
@@ -14,7 +14,7 @@
|
|
|
|
import socket
|
|
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest
|
|
|
|
|
|
diff -Nru google_auth_oauthlib-1.2.2.orig/tests/unit/test_tool.py google_auth_oauthlib-1.2.2/tests/unit/test_tool.py
|
|
--- google_auth_oauthlib-1.2.2.orig/tests/unit/test_tool.py 2025-04-22 18:36:18.000000000 +0200
|
|
+++ google_auth_oauthlib-1.2.2/tests/unit/test_tool.py 2025-05-19 15:48:51.114736755 +0200
|
|
@@ -19,7 +19,7 @@
|
|
|
|
import click.testing
|
|
import google.oauth2.credentials
|
|
-import mock
|
|
+from unittest import mock
|
|
import pytest
|
|
|
|
import google_auth_oauthlib.flow
|