Skip to content

Commit

Permalink
Use the mock standard module
Browse files Browse the repository at this point in the history
It is available as `unittest.mock` since Python 3.3.
  • Loading branch information
BoboTiG authored and jmaupetit committed May 18, 2022
1 parent b820093 commit df4b720
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ twine

# Tests
flake8
# mock>1.0.1 requires setuptools>17
mock<=1.0.1
py
pytest
pytest-datafiles
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import os
import datetime
import mock
from unittest import mock
from io import StringIO

import py
Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import datetime
import operator
from io import StringIO
from mock import patch
from unittest.mock import patch
import pytest
from click.exceptions import Abort
from dateutil.tz import tzutc
Expand Down

0 comments on commit df4b720

Please sign in to comment.