diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2023-05-08 11:34:37 +0100 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2023-05-10 10:51:30 +0100 |
| commit | 7ca43885c26d9dd7903e7015c0a31f3486730eea (patch) | |
| tree | fe4bb785229fe2d904d523a147559a83e6e32411 /openstackclient/tests/unit/image/v2/fakes.py | |
| parent | 329296cedd0a64e9f65b080cef749b65256db85b (diff) | |
| download | python-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/unit/image/v2/fakes.py')
| -rw-r--r-- | openstackclient/tests/unit/image/v2/fakes.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/openstackclient/tests/unit/image/v2/fakes.py b/openstackclient/tests/unit/image/v2/fakes.py index 8ddd9a09..590796f8 100644 --- a/openstackclient/tests/unit/image/v2/fakes.py +++ b/openstackclient/tests/unit/image/v2/fakes.py @@ -28,7 +28,6 @@ from openstackclient.tests.unit import utils class FakeImagev2Client: - def __init__(self, **kwargs): self.images = mock.Mock() self.create_image = mock.Mock() @@ -62,7 +61,6 @@ class FakeImagev2Client: class TestImagev2(utils.TestCommand): - def setUp(self): super().setUp() @@ -162,7 +160,7 @@ def create_one_import_info(attrs=None): 'web-download', 'glance-download', 'copy-image', - ] + ], } } import_info.update(attrs) @@ -188,10 +186,10 @@ def create_one_task(attrs=None): 'input': { 'image_properties': { 'container_format': 'ovf', - 'disk_format': 'vhd' + 'disk_format': 'vhd', }, 'import_from': 'https://apps.openstack.org/excellent-image', - 'import_from_format': 'qcow2' + 'import_from_format': 'qcow2', }, 'message': '', 'owner': str(uuid.uuid4()), @@ -237,7 +235,6 @@ def create_tasks(attrs=None, count=2): class FakeMetadefNamespaceClient: - def __init__(self, **kwargs): self.create_metadef_namespace = mock.Mock() self.delete_metadef_namespace = mock.Mock() @@ -251,7 +248,6 @@ class FakeMetadefNamespaceClient: class TestMetadefNamespaces(utils.TestCommand): - def setUp(self): super().setUp() |
