diff options
author | Mickaƫl Schoentgen <contact@tiger-222.fr> | 2021-08-16 09:49:22 +0200 |
---|---|---|
committer | Julien Maupetit <jmaupetit@users.noreply.github.com> | 2022-05-18 11:17:00 +0200 |
commit | df4b72060b1fc4edaae0a93dbf36bf247410fcf3 (patch) | |
tree | 5b9da69ba94dfbdeeb2218904ae98c68d13beb03 | |
parent | b820093afdacf1477c39586ba0e4c0621e1f05b1 (diff) |
Use the mock standard module
It is available as `unittest.mock` since Python 3.3.
-rw-r--r-- | requirements-dev.txt | 2 | ||||
-rw-r--r-- | tests/__init__.py | 2 | ||||
-rw-r--r-- | tests/test_utils.py | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/requirements-dev.txt b/requirements-dev.txt index 39bbeee..d9db059 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -10,8 +10,6 @@ twine # Tests flake8 -# mock>1.0.1 requires setuptools>17 -mock<=1.0.1 py pytest pytest-datafiles diff --git a/tests/__init__.py b/tests/__init__.py index 7a99ea3..2c5f80e 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,7 +2,7 @@ import os import datetime -import mock +from unittest import mock from io import StringIO import py diff --git a/tests/test_utils.py b/tests/test_utils.py index 1461284..b993767 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -9,7 +9,7 @@ import os 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 |