summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/image/v1
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2023-05-08 11:34:37 +0100
committerStephen Finucane <sfinucan@redhat.com>2023-05-10 10:51:30 +0100
commit7ca43885c26d9dd7903e7015c0a31f3486730eea (patch)
treefe4bb785229fe2d904d523a147559a83e6e32411 /openstackclient/tests/functional/image/v1
parent329296cedd0a64e9f65b080cef749b65256db85b (diff)
downloadpython-openstackclient-7ca43885c26d9dd7903e7015c0a31f3486730eea.tar.gz
Blacken openstackclient.image
Black used with the '-l 79 -S' flags. A future change will ignore this commit in git-blame history by adding a 'git-blame-ignore-revs' file. Change-Id: I6420ec6fd550903b03083b9b1f8391511913c86f Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/tests/functional/image/v1')
-rw-r--r--openstackclient/tests/functional/image/v1/test_image.py35
1 files changed, 14 insertions, 21 deletions
diff --git a/openstackclient/tests/functional/image/v1/test_image.py b/openstackclient/tests/functional/image/v1/test_image.py
index 2b4d8f41..c4118bab 100644
--- a/openstackclient/tests/functional/image/v1/test_image.py
+++ b/openstackclient/tests/functional/image/v1/test_image.py
@@ -26,9 +26,7 @@ class ImageTests(base.BaseImageTests):
if not self.haz_v1_api:
self.skipTest('No Image v1 API present')
- ver_fixture = fixtures.EnvironmentVariable(
- 'OS_IMAGE_API_VERSION', '1'
- )
+ ver_fixture = fixtures.EnvironmentVariable('OS_IMAGE_API_VERSION', '1')
self.useFixture(ver_fixture)
self.name = uuid.uuid4().hex
@@ -46,25 +44,20 @@ class ImageTests(base.BaseImageTests):
super().tearDown()
def test_image_list(self):
- output = self.openstack(
- 'image list'
- )
- self.assertIn(
- self.name,
- [img['Name'] for img in output]
- )
+ output = self.openstack('image list')
+ self.assertIn(self.name, [img['Name'] for img in output])
def test_image_attributes(self):
"""Test set, unset, show on attributes, tags and properties"""
# Test explicit attributes
self.openstack(
- 'image set ' +
- '--min-disk 4 ' +
- '--min-ram 5 ' +
- '--disk-format qcow2 ' +
- '--public ' +
- self.name
+ 'image set '
+ + '--min-disk 4 '
+ + '--min-ram 5 '
+ + '--disk-format qcow2 '
+ + '--public '
+ + self.name
)
output = self.openstack(
'image show ' + self.name,
@@ -88,11 +81,11 @@ class ImageTests(base.BaseImageTests):
# Test properties
self.openstack(
- 'image set ' +
- '--property a=b ' +
- '--property c=d ' +
- '--public ' +
- self.name
+ 'image set '
+ + '--property a=b '
+ + '--property c=d '
+ + '--public '
+ + self.name
)
output = self.openstack(
'image show ' + self.name,