From e2436b310f294992857f22a6d52ede03e36b99b1 Mon Sep 17 00:00:00 2001 From: jacky06 Date: Wed, 6 Mar 2019 22:34:42 +0800 Subject: [PATCH] Update hacking version Use latest release 1.1.0 and compatible changes w.r.t pep8 Change-Id: I1ae708f0753249226ceb47610a1a4d0b558c1d0e --- cinderclient/tests/unit/v3/test_shell.py | 4 ++-- cinderclient/v3/shell.py | 1 + doc/source/user/shell.rst | 2 +- test-requirements.txt | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cinderclient/tests/unit/v3/test_shell.py b/cinderclient/tests/unit/v3/test_shell.py index 8969cabf9..98d4dd1a6 100644 --- a/cinderclient/tests/unit/v3/test_shell.py +++ b/cinderclient/tests/unit/v3/test_shell.py @@ -1068,8 +1068,8 @@ class ShellTest(utils.TestCase): def test_group_failover_replication(self, attach_vol, backend): attach = '--allow-attached-volume ' if attach_vol else '' backend_id = ('--secondary-backend-id ' + backend) if backend else '' - cmd = ('--os-volume-api-version 3.38 group-failover-replication 1234 ' - + attach + backend_id) + cmd = ('--os-volume-api-version 3.38 ' + 'group-failover-replication 1234 ' + attach + backend_id) self.run_command(cmd) expected = {'failover_replication': {'allow_attached_volume': attach_vol, diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py index b076804d4..51e3f76be 100644 --- a/cinderclient/v3/shell.py +++ b/cinderclient/v3/shell.py @@ -31,6 +31,7 @@ from cinderclient import shell_utils from cinderclient import utils from cinderclient.v2.shell import * # noqa +from cinderclient.v2.shell import CheckSizeArgForCreate FILTER_DEPRECATED = ("This option is deprecated and will be removed in " "newer release. Please use '--filters' option which " diff --git a/doc/source/user/shell.rst b/doc/source/user/shell.rst index a06fbff3e..7d478cf4f 100644 --- a/doc/source/user/shell.rst +++ b/doc/source/user/shell.rst @@ -1,5 +1,5 @@ The :program:`cinder` shell utility -========================================= +=================================== .. program:: cinder .. highlight:: bash diff --git a/test-requirements.txt b/test-requirements.txt index a62a30869..662a346b6 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -2,7 +2,8 @@ # of appearance. Changing the order has an impact on the overall integration # process, which may cause wedges in the gate later. # Hacking already pins down pep8, pyflakes and flake8 -hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0 + +hacking>=1.1.0,<1.2.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 ddt>=1.0.1 # MIT fixtures>=3.0.0 # Apache-2.0/BSD