Skip to content

Commit

Permalink
Use unittest.mock instead of mock (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane authored Jan 8, 2021
1 parent 729ec54 commit af563db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions tests/test_MySQLdb_times.py
Original file line number Diff line number Diff line change
@@ -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")

Expand Down

0 comments on commit af563db

Please sign in to comment.