diff options
author | Hervé Beraud <hberaud@redhat.com> | 2020-06-09 12:18:35 +0200 |
---|---|---|
committer | Hervé Beraud <hberaud@redhat.com> | 2020-06-11 17:06:19 +0200 |
commit | 4b654a840f73c46ba721955f722edbf391e3a078 (patch) | |
tree | ebdb7d1f7f1cfcdc66a7f7ca0570a9979dd2eea8 /trove/tests/unittests/common/test_policy.py | |
parent | 4bf6c496bb63123b363498141b06a4c131f83c59 (diff) | |
download | trove-4b654a840f73c46ba721955f722edbf391e3a078.tar.gz |
Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Change-Id: I7b97fab683e45118327b93c776f8c487feab7374
Diffstat (limited to 'trove/tests/unittests/common/test_policy.py')
-rw-r--r-- | trove/tests/unittests/common/test_policy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trove/tests/unittests/common/test_policy.py b/trove/tests/unittests/common/test_policy.py index 016e9e0e..beb27f86 100644 --- a/trove/tests/unittests/common/test_policy.py +++ b/trove/tests/unittests/common/test_policy.py @@ -13,9 +13,9 @@ # License for the specific language governing permissions and limitations # under the License. -from mock import MagicMock -from mock import NonCallableMock -from mock import patch +from unittest.mock import MagicMock +from unittest.mock import NonCallableMock +from unittest.mock import patch from trove.common import exception as trove_exceptions from trove.common import policy as trove_policy |