Skip to content

Commit

Permalink
Use unittest.mock instead of mock
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Jan 8, 2021
1 parent 3e95f35 commit 6794a95
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 6794a95

Please sign in to comment.