From 6794a959b2b1fab5944b0c4d66ec82d5c6636407 Mon Sep 17 00:00:00 2001 From: Inada Naoki Date: Fri, 8 Jan 2021 15:59:52 +0900 Subject: [PATCH] Use unittest.mock instead of mock --- .github/workflows/tests.yaml | 2 +- tests/test_MySQLdb_times.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 748d2c2b..2544b397 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -25,7 +25,7 @@ jobs: TESTDB: actions.cnf run: | pip install -U pip - pip install -U mock coverage pytest pytest-cov + pip install -U coverage pytest pytest-cov pip install . pytest --cov ./MySQLdb - uses: codecov/codecov-action@v1 diff --git a/tests/test_MySQLdb_times.py b/tests/test_MySQLdb_times.py index 0947f3e5..2081b1ac 100644 --- a/tests/test_MySQLdb_times.py +++ b/tests/test_MySQLdb_times.py @@ -1,11 +1,11 @@ -import mock -import unittest -from time import gmtime from datetime import time, date, datetime, timedelta +from time import gmtime +import unittest +from unittest import mock +import warnings from MySQLdb import times -import warnings warnings.simplefilter("ignore")