From dbcdd74c4d8b6424c40b18937d8bd511b3d11951 Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Fri, 10 May 2024 11:25:23 +0200 Subject: [PATCH] chore(python): use new unittest.mock from the standard library --- tests/unit/test_flow.py | 2 +- tests/unit/test_helpers.py | 2 +- tests/unit/test_interactive.py | 2 +- tests/unit/test_tool.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/test_flow.py b/tests/unit/test_flow.py index a3314d1..8e39c2a 100644 --- a/tests/unit/test_flow.py +++ b/tests/unit/test_flow.py @@ -20,8 +20,8 @@ import re import random import socket +from unittest import mock -import mock import pytest import requests import urllib diff --git a/tests/unit/test_helpers.py b/tests/unit/test_helpers.py index 9df49de..2aa2269 100644 --- a/tests/unit/test_helpers.py +++ b/tests/unit/test_helpers.py @@ -15,8 +15,8 @@ import datetime import json import os +from unittest import mock -import mock import pytest from google.auth import external_account_authorized_user diff --git a/tests/unit/test_interactive.py b/tests/unit/test_interactive.py index 3a354eb..88a5bf9 100644 --- a/tests/unit/test_interactive.py +++ b/tests/unit/test_interactive.py @@ -13,8 +13,8 @@ # limitations under the License. import socket +from unittest import mock -import mock import pytest diff --git a/tests/unit/test_tool.py b/tests/unit/test_tool.py index d76ee53..dd4fd48 100644 --- a/tests/unit/test_tool.py +++ b/tests/unit/test_tool.py @@ -16,10 +16,10 @@ import json import os.path import tempfile +from unittest import mock import click.testing import google.oauth2.credentials -import mock import pytest import google_auth_oauthlib.flow