Skip to content

Commit cb6e790

Browse files
committed
use new unittest.mock from the standard library
1 parent 7054d62 commit cb6e790

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

tests/unit/test_flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
import re
2121
import random
2222
import socket
23+
from unittest import mock
2324

24-
import mock
2525
import pytest
2626
import requests
2727
import urllib

tests/unit/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import datetime
1616
import json
1717
import os
18+
from unittest import mock
1819

19-
import mock
2020
import pytest
2121

2222
from google.auth import external_account_authorized_user

tests/unit/test_interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
import socket
16+
from unittest import mock
1617

17-
import mock
1818
import pytest
1919

2020

tests/unit/test_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
import json
1717
import os.path
1818
import tempfile
19+
from unittest import mock
1920

2021
import click.testing
2122
import google.oauth2.credentials
22-
import mock
2323
import pytest
2424

2525
import google_auth_oauthlib.flow

0 commit comments

Comments
 (0)