mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 12:27:03 +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
|
TESTDB: actions.cnf
|
||||||
run: |
|
run: |
|
||||||
pip install -U pip
|
pip install -U pip
|
||||||
pip install -U mock coverage pytest pytest-cov
|
pip install -U coverage pytest pytest-cov
|
||||||
pip install .
|
pip install .
|
||||||
pytest --cov ./MySQLdb
|
pytest --cov ./MySQLdb
|
||||||
- uses: codecov/codecov-action@v1
|
- 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 datetime import time, date, datetime, timedelta
|
||||||
|
from time import gmtime
|
||||||
|
import unittest
|
||||||
|
from unittest import mock
|
||||||
|
import warnings
|
||||||
|
|
||||||
from MySQLdb import times
|
from MySQLdb import times
|
||||||
|
|
||||||
import warnings
|
|
||||||
|
|
||||||
warnings.simplefilter("ignore")
|
warnings.simplefilter("ignore")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user