summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHervé Beraud <hberaud@redhat.com>2020-06-09 12:05:31 +0200
committerHervé Beraud <hberaud@redhat.com>2020-06-11 11:55:55 +0200
commitb9f08915f8b8d2f672a2763bb758d7d0c9dbe59c (patch)
tree7fcfef34a3be49853da62351dd6fa90b702b0521
parent99126428cef64e5b985c66903d3c8444beed0f91 (diff)
downloadpython-troveclient-b9f08915f8b8d2f672a2763bb758d7d0c9dbe59c.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: Ida35e5f79ee17ef8ac6ea2186019ddd4040ec882
-rw-r--r--lower-constraints.txt1
-rw-r--r--troveclient/tests/test_backups.py5
2 files changed, 3 insertions, 3 deletions
diff --git a/lower-constraints.txt b/lower-constraints.txt
index 28180d6..3631459 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -28,7 +28,6 @@ keystoneauth1==3.4.0
linecache2==1.0.0
MarkupSafe==1.0
mccabe==0.2.1
-mock==2.0.0
monotonic==0.6
mox3==0.20.0
msgpack-python==0.4.0
diff --git a/troveclient/tests/test_backups.py b/troveclient/tests/test_backups.py
index ba0ed84..521617d 100644
--- a/troveclient/tests/test_backups.py
+++ b/troveclient/tests/test_backups.py
@@ -13,11 +13,12 @@
# License for the specific language governing permissions and limitations
# under the License.
-from mock import patch
-import testtools
from unittest import mock
+from unittest.mock import patch
import uuid
+import testtools
+
from troveclient.v1 import backups
"""