1
0
Files
python-google-auth-oauthlib/python-google-auth-oauthlib-no-mock.patch
Dirk Mueller 269ea2775f - Update to 1.2.1
* Clean up local server socket on error (#339)
- Adjust upstream source name in spec file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth-oauthlib?expand=0&rev=36
2024-07-15 18:41:40 +00:00

49 lines
1.8 KiB
Diff

diff -Nru google-auth-oauthlib-0.7.1.orig/tests/unit/test_flow.py google-auth-oauthlib-0.7.1/tests/unit/test_flow.py
--- google-auth-oauthlib-0.7.1.orig/tests/unit/test_flow.py 2022-11-03 18:27:07.000000000 +0100
+++ google-auth-oauthlib-0.7.1/tests/unit/test_flow.py 2022-11-07 18:14:12.871489341 +0100
@@ -21,7 +21,7 @@
import random
import socket
-import mock
+from unittest import mock
import pytest
import requests
import urllib
diff -Nru google-auth-oauthlib-0.7.1.orig/tests/unit/test_helpers.py google-auth-oauthlib-0.7.1/tests/unit/test_helpers.py
--- google-auth-oauthlib-0.7.1.orig/tests/unit/test_helpers.py 2022-11-03 18:27:07.000000000 +0100
+++ google-auth-oauthlib-0.7.1/tests/unit/test_helpers.py 2022-11-07 18:14:12.867489297 +0100
@@ -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-0.7.1.orig/tests/unit/test_interactive.py google-auth-oauthlib-0.7.1/tests/unit/test_interactive.py
--- google-auth-oauthlib-0.7.1.orig/tests/unit/test_interactive.py 2022-11-03 18:27:07.000000000 +0100
+++ google-auth-oauthlib-0.7.1/tests/unit/test_interactive.py 2022-11-07 18:14:12.867489297 +0100
@@ -14,7 +14,7 @@
import socket
-import mock
+from unittest import mock
import pytest
diff -Nru google-auth-oauthlib-0.7.1.orig/tests/unit/test_tool.py google-auth-oauthlib-0.7.1/tests/unit/test_tool.py
--- google-auth-oauthlib-0.7.1.orig/tests/unit/test_tool.py 2022-11-03 18:27:07.000000000 +0100
+++ google-auth-oauthlib-0.7.1/tests/unit/test_tool.py 2022-11-07 18:14:12.863489253 +0100
@@ -19,7 +19,7 @@
import click.testing
import google.oauth2.credentials
-import mock
+from unittest import mock
import pytest
import google_auth_oauthlib.flow