From 073abda5a94b12a319c79d6a9b8594036f95fc65 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 5 May 2023 11:05:19 +0100 Subject: [PATCH] Blackify openstack.container_infrastructure_management 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: I61806ea3ab9fa60466fa777fb403d1c07f23543c Signed-off-by: Stephen Finucane --- .../v1/_proxy.py | 10 +++++----- .../v1/test_cluster_certificate.py | 4 ++-- .../v1/test_cluster_template.py | 20 +++++++++++-------- .../v1/test_proxy.py | 5 ++--- .../v1/test_service.py | 2 +- 5 files changed, 22 insertions(+), 19 deletions(-) diff --git a/openstack/container_infrastructure_management/v1/_proxy.py b/openstack/container_infrastructure_management/v1/_proxy.py index 27adc7965..c0ee5204c 100644 --- a/openstack/container_infrastructure_management/v1/_proxy.py +++ b/openstack/container_infrastructure_management/v1/_proxy.py @@ -11,16 +11,16 @@ # under the License. from openstack.container_infrastructure_management.v1 import ( - cluster as _cluster + cluster as _cluster, ) from openstack.container_infrastructure_management.v1 import ( - cluster_certificate as _cluster_cert + cluster_certificate as _cluster_cert, ) from openstack.container_infrastructure_management.v1 import ( - cluster_template as _cluster_template + cluster_template as _cluster_template, ) from openstack.container_infrastructure_management.v1 import ( - service as _service + service as _service, ) from openstack import proxy @@ -30,7 +30,7 @@ class Proxy(proxy.Proxy): _resource_registry = { "cluster": _cluster.Cluster, "cluster_template": _cluster_template.ClusterTemplate, - "service": _service.Service + "service": _service.Service, } def create_cluster(self, **attrs): diff --git a/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_certificate.py b/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_certificate.py index 390bdd489..6435b9bbc 100644 --- a/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_certificate.py +++ b/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_certificate.py @@ -11,7 +11,7 @@ # under the License. from openstack.container_infrastructure_management.v1 import ( - cluster_certificate + cluster_certificate, ) from openstack.tests.unit import base @@ -19,7 +19,7 @@ EXAMPLE = { "cluster_uuid": "0b4b766f-1500-44b3-9804-5a6e12fe6df4", "pem": "-----BEGIN CERTIFICATE-----\nMIICzDCCAbSgAwIBAgIQOOkVcEN7TNa9E80G", "bay_uuid": "0b4b766f-1500-44b3-9804-5a6e12fe6df4", - "csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIEfzCCAmcCAQAwFDESMBAGA1UE" + "csr": "-----BEGIN CERTIFICATE REQUEST-----\nMIIEfzCCAmcCAQAwFDESMBAGA1UE", } diff --git a/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_template.py b/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_template.py index a3a8b5272..d291a8568 100644 --- a/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_template.py +++ b/openstack/tests/unit/container_infrastructure_management/v1/test_cluster_template.py @@ -67,12 +67,14 @@ class TestClusterTemplate(base.TestCase): self.assertEqual(EXAMPLE['cluster_distro'], sot.cluster_distro) self.assertEqual(EXAMPLE['coe'], sot.coe) self.assertEqual(EXAMPLE['created_at'], sot.created_at) - self.assertEqual(EXAMPLE['docker_storage_driver'], - sot.docker_storage_driver) + self.assertEqual( + EXAMPLE['docker_storage_driver'], sot.docker_storage_driver + ) self.assertEqual(EXAMPLE['docker_volume_size'], sot.docker_volume_size) self.assertEqual(EXAMPLE['dns_nameserver'], sot.dns_nameserver) - self.assertEqual(EXAMPLE['external_network_id'], - sot.external_network_id) + self.assertEqual( + EXAMPLE['external_network_id'], sot.external_network_id + ) self.assertEqual(EXAMPLE['fixed_network'], sot.fixed_network) self.assertEqual(EXAMPLE['fixed_subnet'], sot.fixed_subnet) self.assertEqual(EXAMPLE['flavor_id'], sot.flavor_id) @@ -80,11 +82,13 @@ class TestClusterTemplate(base.TestCase): self.assertEqual(EXAMPLE['https_proxy'], sot.https_proxy) self.assertEqual(EXAMPLE['image_id'], sot.image_id) self.assertEqual(EXAMPLE['insecure_registry'], sot.insecure_registry) - self.assertEqual(EXAMPLE['floating_ip_enabled'], - sot.is_floating_ip_enabled) + self.assertEqual( + EXAMPLE['floating_ip_enabled'], sot.is_floating_ip_enabled + ) self.assertEqual(EXAMPLE['hidden'], sot.is_hidden) - self.assertEqual(EXAMPLE['master_lb_enabled'], - sot.is_master_lb_enabled) + self.assertEqual( + EXAMPLE['master_lb_enabled'], sot.is_master_lb_enabled + ) self.assertEqual(EXAMPLE['tls_disabled'], sot.is_tls_disabled) self.assertEqual(EXAMPLE['public'], sot.is_public) self.assertEqual(EXAMPLE['registry_enabled'], sot.is_registry_enabled) diff --git a/openstack/tests/unit/container_infrastructure_management/v1/test_proxy.py b/openstack/tests/unit/container_infrastructure_management/v1/test_proxy.py index e352dd083..7724f3313 100644 --- a/openstack/tests/unit/container_infrastructure_management/v1/test_proxy.py +++ b/openstack/tests/unit/container_infrastructure_management/v1/test_proxy.py @@ -11,7 +11,7 @@ # under the License. from openstack.container_infrastructure_management.v1 import ( - cluster_certificate + cluster_certificate, ) from openstack.container_infrastructure_management.v1 import _proxy from openstack.container_infrastructure_management.v1 import cluster @@ -60,7 +60,7 @@ class TestClusterCertificate(TestMagnumProxy): def test_cluster_certificate_get(self): self.verify_get( self.proxy.get_cluster_certificate, - cluster_certificate.ClusterCertificate + cluster_certificate.ClusterCertificate, ) def test_cluster_certificate_create_attrs(self): @@ -114,7 +114,6 @@ class TestClusterTemplate(TestMagnumProxy): class TestService(TestMagnumProxy): - def test_services(self): self.verify_list( self.proxy.services, diff --git a/openstack/tests/unit/container_infrastructure_management/v1/test_service.py b/openstack/tests/unit/container_infrastructure_management/v1/test_service.py index 908c72c9b..4ede15e09 100644 --- a/openstack/tests/unit/container_infrastructure_management/v1/test_service.py +++ b/openstack/tests/unit/container_infrastructure_management/v1/test_service.py @@ -21,7 +21,7 @@ EXAMPLE = { "updated_at": "2016-08-25T01:13:16+00:00", "host": "magnum-manager", "disabled_reason": None, - "id": 1 + "id": 1, }