Skip to content

tests: drop use of 'unittest2' #1564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"pytest-cov",
"webtest",
"coverage",
"unittest2",
"mock",
]

Expand Down
2 changes: 1 addition & 1 deletion tests/test__auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/test_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

__author__ = "[email protected] (Joe Gregorio)"

import unittest2 as unittest
import datetime
import unittest

from googleapiclient import channel
from googleapiclient import errors
Expand Down
2 changes: 1 addition & 1 deletion tests/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import pickle
import re
import sys
import unittest2 as unittest
import unittest
import urllib

from parameterized import parameterized
Expand Down
2 changes: 1 addition & 1 deletion tests/test_discovery_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"""Discovery document cache tests."""

import datetime
import unittest2 as unittest
import unittest

import mock

Expand Down
2 changes: 1 addition & 1 deletion tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
__author__ = "[email protected] (Ali Afshar)"


import unittest2 as unittest
import unittest
import httplib2


Expand Down
2 changes: 1 addition & 1 deletion tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import logging
import mock
import os
import unittest2 as unittest
import unittest
import urllib
import random
import socket
Expand Down
2 changes: 1 addition & 1 deletion tests/test_json_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import json
import pkg_resources
import platform
import unittest2 as unittest
import unittest
import urllib

import googleapiclient.model
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

import httplib2
import os
import unittest2 as unittest
import unittest

from googleapiclient.errors import HttpError
from googleapiclient.errors import UnexpectedBodyError
Expand Down
2 changes: 1 addition & 1 deletion tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

__author__ = "[email protected] (Joe Gregorio)"

import unittest2 as unittest
import unittest

from googleapiclient.model import BaseModel
from googleapiclient.model import makepatch
Expand Down
2 changes: 1 addition & 1 deletion tests/test_protobuf_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

__author__ = "[email protected] (Matt McDonald)"

import unittest2 as unittest
import unittest
import httplib2

from googleapiclient.model import ProtocolBufferModel
Expand Down
2 changes: 1 addition & 1 deletion tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import json
import os
import unittest2 as unittest
import unittest

from googleapiclient.schema import Schemas

Expand Down