Skip to content
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

fix(deps): use mock from stdlib in tests #488

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/compute_engine/test__metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import json
import os

import mock
from unittest import mock
import pytest

from google.auth import _helpers
Expand Down
2 changes: 1 addition & 1 deletion tests/compute_engine/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import base64
import datetime

import mock
from unittest import mock
import pytest
import responses

Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os
import sys

import mock
from unittest import mock
import pytest


Expand Down
2 changes: 1 addition & 1 deletion tests/crypt/test__python_rsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import json
import os

import mock
from unittest import mock
from pyasn1_modules import pem
import pytest
import rsa
Expand Down
2 changes: 1 addition & 1 deletion tests/oauth2/test__client.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import os
import urllib

import mock
from unittest import mock
import pytest

from google.auth import _helpers
Expand Down
2 changes: 1 addition & 1 deletion tests/oauth2/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import pickle
import sys

import mock
from unittest import mock
import pytest

from google.auth import _helpers
Expand Down
2 changes: 1 addition & 1 deletion tests/oauth2/test_id_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import json
import os

import mock
from unittest import mock
import pytest

from google.auth import environment_vars
Expand Down
2 changes: 1 addition & 1 deletion tests/oauth2/test_service_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import json
import os

import mock
from unittest import mock

from google.auth import _helpers
from google.auth import crypt
Expand Down
2 changes: 1 addition & 1 deletion tests/test__cloud_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os
import subprocess

import mock
from unittest import mock
import pytest

from google.auth import _cloud_sdk
Expand Down
2 changes: 1 addition & 1 deletion tests/test__default.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import json
import os

import mock
from unittest import mock
import pytest

from google.auth import _default
Expand Down
2 changes: 1 addition & 1 deletion tests/test__oauth2client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import os
import sys

import mock
from unittest import mock
import oauth2client.client
import oauth2client.contrib.gce
import oauth2client.service_account
Expand Down
2 changes: 1 addition & 1 deletion tests/test_app_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import datetime

import mock
from unittest import mock
import pytest

from google.auth import app_engine
Expand Down
2 changes: 1 addition & 1 deletion tests/test_iam.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import http.client
import json

import mock
from unittest import mock
import pytest

from google.auth import _helpers
Expand Down
2 changes: 1 addition & 1 deletion tests/test_impersonated_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json
import os

import mock
from unittest import mock
import pytest

from google.auth import _helpers
Expand Down
2 changes: 1 addition & 1 deletion tests/test_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json
import os

import mock
from unittest import mock
import pytest

from google.auth import _helpers
Expand Down
2 changes: 1 addition & 1 deletion tests/transport/test__mtls_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import os
import re

import mock
from unittest import mock
from OpenSSL import crypto
import pytest

Expand Down
2 changes: 1 addition & 1 deletion tests/transport/test_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
import time

import mock
from unittest import mock
import pytest

from google.auth import _helpers
Expand Down
2 changes: 1 addition & 1 deletion tests/transport/test_mtls.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import mock
from unittest import mock
import pytest

from google.auth import exceptions
Expand Down
2 changes: 1 addition & 1 deletion tests/transport/test_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import sys

import freezegun
import mock
from unittest import mock
import OpenSSL
import pytest
import requests
Expand Down
2 changes: 1 addition & 1 deletion tests/transport/test_urllib3.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import os
import sys

import mock
from unittest import mock
import OpenSSL
import pytest
import urllib3
Expand Down