summaryrefslogtreecommitdiff
path: root/cinderclient/tests/unit/test_shell.py
diff options
context:
space:
mode:
authorEric Harney <eharney@redhat.com>2022-11-09 12:28:38 -0500
committerEric Harney <eharney@redhat.com>2022-11-15 10:12:41 -0500
commit2d7ae2cd38a2194f98b71d4d98c4273e9ad33e72 (patch)
tree5edde3e30e7ca17a16f2270f3cf0728e085b4366 /cinderclient/tests/unit/test_shell.py
parent6f67187b8255ae231f82a9deaaf9156c868153a0 (diff)
downloadpython-cinderclient-2d7ae2cd38a2194f98b71d4d98c4273e9ad33e72.tar.gz
Move print operations to shell_utils
Move more code to shell_utils that is only used for shell operations. The benefit of this is that the cinderclient library becomes lighter-weight, because users of the lib no longer have to import prettytable and extra code. Change-Id: I7bf6bd91ee5746d1ad4bd4504f3a056d03ae86a9
Diffstat (limited to 'cinderclient/tests/unit/test_shell.py')
-rw-r--r--cinderclient/tests/unit/test_shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cinderclient/tests/unit/test_shell.py b/cinderclient/tests/unit/test_shell.py
index 682d509..e545edc 100644
--- a/cinderclient/tests/unit/test_shell.py
+++ b/cinderclient/tests/unit/test_shell.py
@@ -545,7 +545,7 @@ class TestLoadVersionedActions(utils.TestCase):
class ShellUtilsTest(utils.TestCase):
- @mock.patch.object(cinderclient.utils, 'print_dict')
+ @mock.patch.object(cinderclient.shell_utils, 'print_dict')
def test_print_volume_image(self, mock_print_dict):
response = {'os-volume_upload_image': {'name': 'myimg1'}}
image_resp_tuple = (202, response)