- Update to version 1.11.0 * add support for mtls env variables (#1008) - from version 1.10.1 * discovery uses V2 when version is None (#975), closes (#971) * fix deprecation warnings due to invalid escape sequences. (#996), closes (#995) * fix link to service accounts documentation (#986) * update generated docs (#981) - from version 1.10.0 * allow to use 'six.moves.collections_abc.Mapping' in 'client_options.from_dict()' (#943) * Build universal wheels (#948) * discovery supports retries (#967), closes (#848) * consolidating and updating the Contribution Guide (#964), closes (#963) - from version 1.9.3 * update GOOGLE_API_USE_MTLS values (#940) - from version 1.9.2 * bump api-core version (#936) - from version 1.9.1 * fix python-api-core dependency issue (#931) - from version 1.9.0 * add mtls feature (#917) * add templates for python samples projects (#506), (#924) - Refresh patches for new version + python-google-api-python-client-no-unittest2.patch - Update BuildRequires and Requires from setup.py OBS-URL: https://build.opensuse.org/request/show/833487 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=39
133 lines
5.2 KiB
Diff
133 lines
5.2 KiB
Diff
diff -Nru google-api-python-client-1.11.0.orig/tests/test__auth.py google-api-python-client-1.11.0/tests/test__auth.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test__auth.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test__auth.py 2020-09-10 15:54:13.243410474 +0200
|
|
@@ -18,7 +18,7 @@
|
|
import google_auth_httplib2
|
|
import httplib2
|
|
import oauth2client.client
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
|
|
from googleapiclient import _auth
|
|
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_channel.py google-api-python-client-1.11.0/tests/test_channel.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_channel.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_channel.py 2020-09-10 15:54:13.243410474 +0200
|
|
@@ -3,7 +3,7 @@
|
|
|
|
__author__ = "jcgregorio@google.com (Joe Gregorio)"
|
|
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
import datetime
|
|
|
|
from googleapiclient import channel
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_discovery_cache.py google-api-python-client-1.11.0/tests/test_discovery_cache.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_discovery_cache.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_discovery_cache.py 2020-09-10 15:54:13.243410474 +0200
|
|
@@ -18,7 +18,7 @@
|
|
"""Discovery document cache tests."""
|
|
|
|
import datetime
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
|
|
import mock
|
|
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_discovery.py google-api-python-client-1.11.0/tests/test_discovery.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_discovery.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_discovery.py 2020-09-10 15:54:40.883760261 +0200
|
|
@@ -37,7 +37,7 @@
|
|
import pickle
|
|
import re
|
|
import sys
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
from collections import defaultdict
|
|
|
|
from parameterized import parameterized
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_errors.py google-api-python-client-1.11.0/tests/test_errors.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_errors.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_errors.py 2020-09-10 15:54:13.247410524 +0200
|
|
@@ -21,7 +21,7 @@
|
|
__author__ = "afshar@google.com (Ali Afshar)"
|
|
|
|
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
import httplib2
|
|
|
|
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_http.py google-api-python-client-1.11.0/tests/test_http.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_http.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_http.py 2020-09-10 15:54:13.247410524 +0200
|
|
@@ -35,7 +35,7 @@
|
|
import logging
|
|
import mock
|
|
import os
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
import random
|
|
import socket
|
|
import ssl
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_json_model.py google-api-python-client-1.11.0/tests/test_json_model.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_json_model.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_json_model.py 2020-09-10 15:54:13.247410524 +0200
|
|
@@ -28,7 +28,7 @@
|
|
import os
|
|
import pkg_resources
|
|
import platform
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
import httplib2
|
|
import googleapiclient.model
|
|
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_mocks.py google-api-python-client-1.11.0/tests/test_mocks.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_mocks.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_mocks.py 2020-09-10 15:54:13.247410524 +0200
|
|
@@ -24,7 +24,7 @@
|
|
|
|
import httplib2
|
|
import os
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
|
|
from googleapiclient.errors import HttpError
|
|
from googleapiclient.errors import UnexpectedBodyError
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_model.py google-api-python-client-1.11.0/tests/test_model.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_model.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_model.py 2020-09-10 15:54:13.247410524 +0200
|
|
@@ -23,7 +23,7 @@
|
|
|
|
__author__ = "jcgregorio@google.com (Joe Gregorio)"
|
|
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
|
|
from googleapiclient.model import BaseModel
|
|
from googleapiclient.model import makepatch
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_protobuf_model.py google-api-python-client-1.11.0/tests/test_protobuf_model.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_protobuf_model.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_protobuf_model.py 2020-09-10 15:54:13.247410524 +0200
|
|
@@ -22,7 +22,7 @@
|
|
|
|
__author__ = "mmcdonald@google.com (Matt McDonald)"
|
|
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
import httplib2
|
|
import googleapiclient.model
|
|
|
|
diff -Nru google-api-python-client-1.11.0.orig/tests/test_schema.py google-api-python-client-1.11.0/tests/test_schema.py
|
|
--- google-api-python-client-1.11.0.orig/tests/test_schema.py 2020-08-27 23:33:51.000000000 +0200
|
|
+++ google-api-python-client-1.11.0/tests/test_schema.py 2020-09-10 15:54:13.247410524 +0200
|
|
@@ -19,7 +19,7 @@
|
|
|
|
import json
|
|
import os
|
|
-import unittest2 as unittest
|
|
+import unittest
|
|
|
|
from googleapiclient.schema import Schemas
|
|
|