diff options
author | Thomas Bechtold <tbechtold@suse.com> | 2017-08-20 08:44:19 +0200 |
---|---|---|
committer | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-10-09 15:11:07 +0800 |
commit | 7ed9834e10e87d58605a5fa09ce4670d913551d8 (patch) | |
tree | 842fb7ec17fcb9d8fc507d70a4f694d1e50b487b /heatclient/tests | |
parent | 4b397ae7eb82915093d02e09a796c28b608b095f (diff) | |
download | python-heatclient-7ed9834e10e87d58605a5fa09ce4670d913551d8.tar.gz |
No longer use oslotest.mockpatch
It is deprecated[1] and will be removed soon.
[1] I3efb3c64ebce396e756a47d110a74fe8604b6b72
Closes-Bug: #1712017
Change-Id: If6406da4c940686cbda696f760d06d45690912a1
Diffstat (limited to 'heatclient/tests')
-rw-r--r-- | heatclient/tests/unit/test_shell.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/heatclient/tests/unit/test_shell.py b/heatclient/tests/unit/test_shell.py index 57bd1ff..175eda1 100644 --- a/heatclient/tests/unit/test_shell.py +++ b/heatclient/tests/unit/test_shell.py @@ -22,7 +22,6 @@ import mock import mox from oslo_serialization import jsonutils from oslo_utils import encodeutils -from oslotest import mockpatch import requests from requests_mock.contrib import fixture as rm_fixture import six @@ -124,7 +123,7 @@ class TestCase(testtools.TestCase): # NOTE(tlashchova): this overrides the testtools.TestCase.patch method # that does simple monkey-patching in favor of mock's patching def patch(self, target, **kwargs): - mockfixture = self.useFixture(mockpatch.Patch(target, **kwargs)) + mockfixture = self.useFixture(fixtures.MockPatch(target, **kwargs)) return mockfixture.mock def stack_list_resp_dict(self, show_nested=False, include_project=False): |