summaryrefslogtreecommitdiff
path: root/trove/tests/unittests/mgmt/test_datastores.py
diff options
context:
space:
mode:
authorHervé Beraud <hberaud@redhat.com>2020-06-09 12:18:35 +0200
committerHervé Beraud <hberaud@redhat.com>2020-06-11 17:06:19 +0200
commit4b654a840f73c46ba721955f722edbf391e3a078 (patch)
treeebdb7d1f7f1cfcdc66a7f7ca0570a9979dd2eea8 /trove/tests/unittests/mgmt/test_datastores.py
parent4bf6c496bb63123b363498141b06a4c131f83c59 (diff)
downloadtrove-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/mgmt/test_datastores.py')
-rw-r--r--trove/tests/unittests/mgmt/test_datastores.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/tests/unittests/mgmt/test_datastores.py b/trove/tests/unittests/mgmt/test_datastores.py
index 2d1405a6..c3b5ad72 100644
--- a/trove/tests/unittests/mgmt/test_datastores.py
+++ b/trove/tests/unittests/mgmt/test_datastores.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from mock import Mock, patch
+from unittest.mock import Mock, patch
from glanceclient import exc as glance_exceptions
from trove.common import clients