Skip to content

Commit aa06634

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix several flake8 code style issues in compute tests."
2 parents 6dbec64 + f2b73c2 commit aa06634

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

functional/tests/compute/v2/test_agent.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
class ComputeAgentTests(test.TestCase):
19-
"""Functional tests for compute agent. """
19+
"""Functional tests for compute agent."""
2020

2121
ID = None
2222
MD5HASH = hashlib.md5().hexdigest()
@@ -32,11 +32,11 @@ class ComputeAgentTests(test.TestCase):
3232
@classmethod
3333
def setUpClass(cls):
3434
opts = cls.get_show_opts(cls.HEADERS)
35-
raw_output = cls.openstack('compute agent create '
36-
+ cls.OS + ' ' + cls.ARCH + ' '
37-
+ cls.VER + ' ' + cls.URL + ' '
38-
+ cls.MD5HASH + ' ' + cls.HYPER + ' '
39-
+ opts)
35+
raw_output = cls.openstack('compute agent create ' +
36+
cls.OS + ' ' + cls.ARCH + ' ' +
37+
cls.VER + ' ' + cls.URL + ' ' +
38+
cls.MD5HASH + ' ' + cls.HYPER + ' ' +
39+
opts)
4040

4141
# Get agent id because agent can only be deleted by ID
4242
output_list = raw_output.split('\n', 1)
@@ -64,9 +64,9 @@ def test_agent_set(self):
6464
url = "http://openstack"
6565
md5hash = hashlib.md5().hexdigest()
6666

67-
raw_output = self.openstack('compute agent set '
68-
+ self.ID + ' ' + ver + ' '
69-
+ url + ' ' + md5hash)
67+
raw_output = self.openstack('compute agent set ' +
68+
self.ID + ' ' + ver + ' ' +
69+
url + ' ' + md5hash)
7070
self.assertEqual('', raw_output)
7171

7272
raw_output = self.openstack('compute agent list')

functional/tests/compute/v2/test_aggregate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
class AggregateTests(test.TestCase):
19-
"""Functional tests for aggregate. """
19+
"""Functional tests for aggregate."""
2020

2121
NAME = uuid.uuid4().hex
2222
HEADERS = ['Name']

functional/tests/compute/v2/test_flavor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
class FlavorTests(test.TestCase):
19-
"""Functional tests for flavor. """
19+
"""Functional tests for flavor."""
2020

2121
NAME = uuid.uuid4().hex
2222
HEADERS = ['Name']

functional/tests/compute/v2/test_server_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
class ServerGroupTests(test.TestCase):
19-
"""Functional tests for servergroup. """
19+
"""Functional tests for servergroup."""
2020

2121
NAME = uuid.uuid4().hex
2222
HEADERS = ['Name']

0 commit comments

Comments
 (0)