mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-14 18:12:35 +08:00
Use unittest.mock instead of mock (#469)
This commit is contained in:
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@ -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
|
||||
|
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user