Use unittest.mock instead of mock (#469)

This commit is contained in:
Inada Naoki
2021-01-08 16:28:06 +09:00
committed by GitHub
parent 729ec54e39
commit af563dbf51
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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")