diff options
author | Zuul <zuul@review.openstack.org> | 2017-10-17 18:40:20 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-10-17 18:40:20 +0000 |
commit | 799bb285b06b7215085d11c2232e0775dbf07722 (patch) | |
tree | 7af3390c7b63e1660803acb71a8dbbc3997cd271 /heatclient/tests/unit | |
parent | e912fdfd79e432aaac89fff68cde695a16bd7881 (diff) | |
parent | 7ed9834e10e87d58605a5fa09ce4670d913551d8 (diff) | |
download | python-heatclient-799bb285b06b7215085d11c2232e0775dbf07722.tar.gz |
Merge "No longer use oslotest.mockpatch"
Diffstat (limited to 'heatclient/tests/unit')
-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): |