summaryrefslogtreecommitdiff
path: root/saharaclient/tests/unit/osc/v1/test_plugins.py
diff options
context:
space:
mode:
authorsongwenping <songwenping@inspur.com>2022-04-19 11:25:47 +0800
committersongwenping <songwenping@inspur.com>2022-07-06 20:02:16 +0800
commit9ddf2f7108ad1e81cc8969df87433f6f79ec005b (patch)
treeb54c13f96bfd1865daef4a3ce4fd86f3f024f84c /saharaclient/tests/unit/osc/v1/test_plugins.py
parentab12ce32a4a77268ff35b719fab415498fc0827b (diff)
downloadpython-saharaclient-9ddf2f7108ad1e81cc8969df87433f6f79ec005b.tar.gz
Remove usage of six
Six package is not used anymore Change-Id: Ie72645229f23692d6bf87e58dd8ef212dd91189c
Diffstat (limited to 'saharaclient/tests/unit/osc/v1/test_plugins.py')
-rw-r--r--saharaclient/tests/unit/osc/v1/test_plugins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/saharaclient/tests/unit/osc/v1/test_plugins.py b/saharaclient/tests/unit/osc/v1/test_plugins.py
index 75c49b1..a39f93b 100644
--- a/saharaclient/tests/unit/osc/v1/test_plugins.py
+++ b/saharaclient/tests/unit/osc/v1/test_plugins.py
@@ -156,7 +156,7 @@ class TestGetPluginConfigs(TestPlugins):
@mock.patch('oslo_serialization.jsonutils.dump')
def test_get_plugin_configs_default_file(self, p_dump):
m_open = mock.mock_open()
- with mock.patch('six.moves.builtins.open', m_open, create=True):
+ with mock.patch('builtins.open', m_open, create=True):
arglist = ['fake', '0.1']
verifylist = [('plugin', 'fake'), ('plugin_version', '0.1')]
@@ -178,7 +178,7 @@ class TestGetPluginConfigs(TestPlugins):
@mock.patch('oslo_serialization.jsonutils.dump')
def test_get_plugin_configs_specified_file(self, p_dump):
m_open = mock.mock_open()
- with mock.patch('six.moves.builtins.open', m_open):
+ with mock.patch('builtins.open', m_open):
arglist = ['fake', '0.1', '--file', 'testfile']
verifylist = [('plugin', 'fake'), ('plugin_version', '0.1'),
('file', 'testfile')]