summaryrefslogtreecommitdiff
path: root/heatclient/tests/unit/osc/v1/test_stack.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2022-06-13 17:51:28 +0000
committerGerrit Code Review <review@openstack.org>2022-06-13 17:51:28 +0000
commit9e84a5970bec253a9a4da5fd05cbace05a9220c5 (patch)
tree0590c14f1c689c77aaae5dc56f03fdf3a52fbef6 /heatclient/tests/unit/osc/v1/test_stack.py
parente9011421a9936647e5925cdb92a2dd3272dec846 (diff)
parent23e647539cb9c6872d9f72de99c21e113fded77c (diff)
downloadpython-heatclient-9e84a5970bec253a9a4da5fd05cbace05a9220c5.tar.gz
Merge "Remove six"
Diffstat (limited to 'heatclient/tests/unit/osc/v1/test_stack.py')
-rw-r--r--heatclient/tests/unit/osc/v1/test_stack.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/heatclient/tests/unit/osc/v1/test_stack.py b/heatclient/tests/unit/osc/v1/test_stack.py
index 7af48ff..49dc8e9 100644
--- a/heatclient/tests/unit/osc/v1/test_stack.py
+++ b/heatclient/tests/unit/osc/v1/test_stack.py
@@ -17,7 +17,6 @@ from unittest import mock
from osc_lib import exceptions as exc
from osc_lib import utils
-import six
import testscenarios
import yaml
@@ -274,7 +273,7 @@ class TestStackUpdate(TestStack):
ex = self.assertRaises(exc.CommandError, self.cmd.take_action,
parsed_args)
- self.assertEqual("--rollback invalid value: foo", six.text_type(ex))
+ self.assertEqual("--rollback invalid value: foo", str(ex))
def test_stack_update_parameters(self):
template_path = ('/'.join(self.template_path.split('/')[:-1]) +
@@ -720,7 +719,7 @@ class TestStackDelete(TestStack):
self.stack_client.delete.assert_any_call('stack3')
self.assertEqual('Unable to delete 1 of the 3 stacks.', str(error))
- @mock.patch('sys.stdin', spec=six.StringIO)
+ @mock.patch('sys.stdin', spec=io.StringIO)
def test_stack_delete_prompt(self, mock_stdin):
arglist = ['my_stack']
mock_stdin.isatty.return_value = True
@@ -732,7 +731,7 @@ class TestStackDelete(TestStack):
mock_stdin.readline.assert_called_with()
self.stack_client.delete.assert_called_with('my_stack')
- @mock.patch('sys.stdin', spec=six.StringIO)
+ @mock.patch('sys.stdin', spec=io.StringIO)
def test_stack_delete_prompt_no(self, mock_stdin):
arglist = ['my_stack']
mock_stdin.isatty.return_value = True