diff options
| author | Kyrylo Romanenko <kromanenko@mirantis.com> | 2016-06-24 14:45:19 +0300 |
|---|---|---|
| committer | Kyrylo Romanenko <kromanenko@mirantis.com> | 2016-06-24 14:45:19 +0300 |
| commit | f2b73c2737037bc38e3608a9be98a2076fc8d777 (patch) | |
| tree | e63f15046933fb9cc59987359a0f2c29a0a45fef | |
| parent | 6828f5ce27dd5fb03bfb7fd9847bde0b942fd467 (diff) | |
| download | python-openstackclient-f2b73c2737037bc38e3608a9be98a2076fc8d777.tar.gz | |
Fix several flake8 code style issues in compute tests.
Fix issues:
H402 one line docstring needs punctuation,
W503 line break before binary operator.
Change-Id: Ie93430898403f137e7b647a97a28b0d7a4ebb463
| -rw-r--r-- | functional/tests/compute/v2/test_agent.py | 18 | ||||
| -rw-r--r-- | functional/tests/compute/v2/test_aggregate.py | 2 | ||||
| -rw-r--r-- | functional/tests/compute/v2/test_flavor.py | 2 | ||||
| -rw-r--r-- | functional/tests/compute/v2/test_server_group.py | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/functional/tests/compute/v2/test_agent.py b/functional/tests/compute/v2/test_agent.py index df7c21f2..2d7ea216 100644 --- a/functional/tests/compute/v2/test_agent.py +++ b/functional/tests/compute/v2/test_agent.py @@ -16,7 +16,7 @@ from functional.common import test class ComputeAgentTests(test.TestCase): - """Functional tests for compute agent. """ + """Functional tests for compute agent.""" ID = None MD5HASH = hashlib.md5().hexdigest() @@ -32,11 +32,11 @@ class ComputeAgentTests(test.TestCase): @classmethod def setUpClass(cls): opts = cls.get_show_opts(cls.HEADERS) - raw_output = cls.openstack('compute agent create ' - + cls.OS + ' ' + cls.ARCH + ' ' - + cls.VER + ' ' + cls.URL + ' ' - + cls.MD5HASH + ' ' + cls.HYPER + ' ' - + opts) + raw_output = cls.openstack('compute agent create ' + + cls.OS + ' ' + cls.ARCH + ' ' + + cls.VER + ' ' + cls.URL + ' ' + + cls.MD5HASH + ' ' + cls.HYPER + ' ' + + opts) # Get agent id because agent can only be deleted by ID output_list = raw_output.split('\n', 1) @@ -64,9 +64,9 @@ class ComputeAgentTests(test.TestCase): url = "http://openstack" md5hash = hashlib.md5().hexdigest() - raw_output = self.openstack('compute agent set ' - + self.ID + ' ' + ver + ' ' - + url + ' ' + md5hash) + raw_output = self.openstack('compute agent set ' + + self.ID + ' ' + ver + ' ' + + url + ' ' + md5hash) self.assertEqual('', raw_output) raw_output = self.openstack('compute agent list') diff --git a/functional/tests/compute/v2/test_aggregate.py b/functional/tests/compute/v2/test_aggregate.py index 2ad65599..5bac5858 100644 --- a/functional/tests/compute/v2/test_aggregate.py +++ b/functional/tests/compute/v2/test_aggregate.py @@ -16,7 +16,7 @@ from functional.common import test class AggregateTests(test.TestCase): - """Functional tests for aggregate. """ + """Functional tests for aggregate.""" NAME = uuid.uuid4().hex HEADERS = ['Name'] diff --git a/functional/tests/compute/v2/test_flavor.py b/functional/tests/compute/v2/test_flavor.py index d1f5f95d..2bb075bd 100644 --- a/functional/tests/compute/v2/test_flavor.py +++ b/functional/tests/compute/v2/test_flavor.py @@ -16,7 +16,7 @@ from functional.common import test class FlavorTests(test.TestCase): - """Functional tests for flavor. """ + """Functional tests for flavor.""" NAME = uuid.uuid4().hex HEADERS = ['Name'] diff --git a/functional/tests/compute/v2/test_server_group.py b/functional/tests/compute/v2/test_server_group.py index ce4f97a6..c073b88e 100644 --- a/functional/tests/compute/v2/test_server_group.py +++ b/functional/tests/compute/v2/test_server_group.py @@ -16,7 +16,7 @@ from functional.common import test class ServerGroupTests(test.TestCase): - """Functional tests for servergroup. """ + """Functional tests for servergroup.""" NAME = uuid.uuid4().hex HEADERS = ['Name'] |
