diff options
author | Tres Seaver <tseaver@palladion.com> | 2021-10-12 12:26:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 12:26:30 -0400 |
commit | f6c1b9423e2ce828c2101bfe89e97bd6628ce03a (patch) | |
tree | 7906bf359c1d5ace99a72b1fbffd1584cbede1ca | |
parent | 1c9dcfd348b6601c1c5ff0f4f71aee262256377e (diff) | |
download | google-api-python-client-f6c1b9423e2ce828c2101bfe89e97bd6628ce03a.tar.gz |
tests: drop use of 'unittest2' (#1564)
-rw-r--r-- | noxfile.py | 1 | ||||
-rw-r--r-- | tests/test__auth.py | 2 | ||||
-rw-r--r-- | tests/test_channel.py | 2 | ||||
-rw-r--r-- | tests/test_discovery.py | 2 | ||||
-rw-r--r-- | tests/test_discovery_cache.py | 2 | ||||
-rw-r--r-- | tests/test_errors.py | 2 | ||||
-rw-r--r-- | tests/test_http.py | 2 | ||||
-rw-r--r-- | tests/test_json_model.py | 2 | ||||
-rw-r--r-- | tests/test_mocks.py | 2 | ||||
-rw-r--r-- | tests/test_model.py | 2 | ||||
-rw-r--r-- | tests/test_protobuf_model.py | 2 | ||||
-rw-r--r-- | tests/test_schema.py | 2 |
12 files changed, 11 insertions, 12 deletions
diff --git a/noxfile.py b/noxfile.py index 6e2cadc3b..27a87146f 100644 --- a/noxfile.py +++ b/noxfile.py @@ -27,7 +27,6 @@ test_dependencies = [ "pytest-cov", "webtest", "coverage", - "unittest2", "mock", ] diff --git a/tests/test__auth.py b/tests/test__auth.py index 6347e42d6..08aa83c32 100644 --- a/tests/test__auth.py +++ b/tests/test__auth.py @@ -12,13 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. +import unittest import mock import google.auth.credentials import google_auth_httplib2 import httplib2 import oauth2client.client -import unittest2 as unittest from googleapiclient import _auth diff --git a/tests/test_channel.py b/tests/test_channel.py index 8a46bf07c..fe3373149 100644 --- a/tests/test_channel.py +++ b/tests/test_channel.py @@ -3,8 +3,8 @@ from __future__ import absolute_import __author__ = "jcgregorio@google.com (Joe Gregorio)" -import unittest2 as unittest import datetime +import unittest from googleapiclient import channel from googleapiclient import errors diff --git a/tests/test_discovery.py b/tests/test_discovery.py index 2f3f028d7..9559bf681 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -35,7 +35,7 @@ import os import pickle import re import sys -import unittest2 as unittest +import unittest import urllib from parameterized import parameterized diff --git a/tests/test_discovery_cache.py b/tests/test_discovery_cache.py index 2c3efd821..cd5331873 100644 --- a/tests/test_discovery_cache.py +++ b/tests/test_discovery_cache.py @@ -18,7 +18,7 @@ """Discovery document cache tests.""" import datetime -import unittest2 as unittest +import unittest import mock diff --git a/tests/test_errors.py b/tests/test_errors.py index 955526ff3..7a2cfdeda 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -21,7 +21,7 @@ from __future__ import absolute_import __author__ = "afshar@google.com (Ali Afshar)" -import unittest2 as unittest +import unittest import httplib2 diff --git a/tests/test_http.py b/tests/test_http.py index 548426953..852cd7e1a 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -31,7 +31,7 @@ import io import logging import mock import os -import unittest2 as unittest +import unittest import urllib import random import socket diff --git a/tests/test_json_model.py b/tests/test_json_model.py index 416b7be93..1ddc1c73b 100644 --- a/tests/test_json_model.py +++ b/tests/test_json_model.py @@ -26,7 +26,7 @@ import httplib2 import json import pkg_resources import platform -import unittest2 as unittest +import unittest import urllib import googleapiclient.model diff --git a/tests/test_mocks.py b/tests/test_mocks.py index d0a0ff04e..287da9585 100644 --- a/tests/test_mocks.py +++ b/tests/test_mocks.py @@ -24,7 +24,7 @@ __author__ = "jcgregorio@google.com (Joe Gregorio)" import httplib2 import os -import unittest2 as unittest +import unittest from googleapiclient.errors import HttpError from googleapiclient.errors import UnexpectedBodyError diff --git a/tests/test_model.py b/tests/test_model.py index c3c936cdc..07d226100 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -23,7 +23,7 @@ from __future__ import absolute_import __author__ = "jcgregorio@google.com (Joe Gregorio)" -import unittest2 as unittest +import unittest from googleapiclient.model import BaseModel from googleapiclient.model import makepatch diff --git a/tests/test_protobuf_model.py b/tests/test_protobuf_model.py index 4479b13d9..68e39632c 100644 --- a/tests/test_protobuf_model.py +++ b/tests/test_protobuf_model.py @@ -22,7 +22,7 @@ from __future__ import absolute_import __author__ = "mmcdonald@google.com (Matt McDonald)" -import unittest2 as unittest +import unittest import httplib2 from googleapiclient.model import ProtocolBufferModel diff --git a/tests/test_schema.py b/tests/test_schema.py index f5fd518f5..b288908cc 100644 --- a/tests/test_schema.py +++ b/tests/test_schema.py @@ -19,7 +19,7 @@ __author__ = "jcgregorio@google.com (Joe Gregorio)" import json import os -import unittest2 as unittest +import unittest from googleapiclient.schema import Schemas |