Merge "Update hacking version"
This commit is contained in:
commit
155e540ebf
@ -28,10 +28,10 @@ import uuid
|
|||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt': # noqa
|
||||||
import msvcrt
|
import msvcrt # noqa
|
||||||
else:
|
else: # noqa
|
||||||
msvcrt = None
|
msvcrt = None # noqa
|
||||||
|
|
||||||
from oslo_utils import encodeutils
|
from oslo_utils import encodeutils
|
||||||
from oslo_utils import strutils
|
from oslo_utils import strutils
|
||||||
|
@ -334,8 +334,8 @@ class ShellInvalidEndpointandParameterTest(utils.TestCase):
|
|||||||
e = self.assertRaises(exc.CommandError, self.run_command,
|
e = self.assertRaises(exc.CommandError, self.run_command,
|
||||||
'--os-image-api-version 1 image-create ' +
|
'--os-image-api-version 1 image-create ' +
|
||||||
origin + ' fake_src --container-format bare')
|
origin + ' fake_src --container-format bare')
|
||||||
self.assertEqual('error: Must provide --disk-format when using '
|
self.assertEqual('error: Must provide --disk-format when using ' +
|
||||||
+ origin + '.', e.message)
|
origin + '.', e.message)
|
||||||
|
|
||||||
@mock.patch('sys.stderr')
|
@mock.patch('sys.stderr')
|
||||||
def test_image_create_missing_container_format(self, __):
|
def test_image_create_missing_container_format(self, __):
|
||||||
@ -536,8 +536,8 @@ class ShellStdinHandlingTests(testtools.TestCase):
|
|||||||
self._do_update()
|
self._do_update()
|
||||||
|
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
'data' not in self.collected_args[1]
|
'data' not in self.collected_args[1] or
|
||||||
or self.collected_args[1]['data'] is None
|
self.collected_args[1]['data'] is None
|
||||||
)
|
)
|
||||||
|
|
||||||
def test_image_update_opened_stdin(self):
|
def test_image_update_opened_stdin(self):
|
||||||
|
@ -57,7 +57,7 @@ def schema_args(schema_getter, omit=None):
|
|||||||
return original_schema_args(my_schema_getter, omit)
|
return original_schema_args(my_schema_getter, omit)
|
||||||
utils.schema_args = schema_args
|
utils.schema_args = schema_args
|
||||||
|
|
||||||
from glanceclient.v2 import shell as test_shell
|
from glanceclient.v2 import shell as test_shell # noqa
|
||||||
|
|
||||||
# Return original decorator.
|
# Return original decorator.
|
||||||
utils.schema_args = original_schema_args
|
utils.schema_args = original_schema_args
|
||||||
|
@ -45,11 +45,11 @@ _bool_strict = functools.partial(strutils.bool_from_string, strict=True)
|
|||||||
help='Filter images to those that changed since the given time'
|
help='Filter images to those that changed since the given time'
|
||||||
', which will include the deleted images.')
|
', which will include the deleted images.')
|
||||||
@utils.arg('--container-format', metavar='<CONTAINER_FORMAT>',
|
@utils.arg('--container-format', metavar='<CONTAINER_FORMAT>',
|
||||||
help='Filter images to those that have this container format. '
|
help='Filter images to those that have this container format. ' +
|
||||||
+ CONTAINER_FORMATS)
|
CONTAINER_FORMATS)
|
||||||
@utils.arg('--disk-format', metavar='<DISK_FORMAT>',
|
@utils.arg('--disk-format', metavar='<DISK_FORMAT>',
|
||||||
help='Filter images to those that have this disk format. '
|
help='Filter images to those that have this disk format. ' +
|
||||||
+ DISK_FORMATS)
|
DISK_FORMATS)
|
||||||
@utils.arg('--size-min', metavar='<SIZE>', type=int,
|
@utils.arg('--size-min', metavar='<SIZE>', type=int,
|
||||||
help='Filter images to those with a size greater than this.')
|
help='Filter images to those with a size greater than this.')
|
||||||
@utils.arg('--size-max', metavar='<SIZE>', type=int,
|
@utils.arg('--size-max', metavar='<SIZE>', type=int,
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# The order of packages is significant, because pip processes them in the order
|
# The order of packages is significant, because pip processes them in the order
|
||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
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
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
mock>=2.0.0 # BSD
|
mock>=2.0.0 # BSD
|
||||||
|
3
tox.ini
3
tox.ini
@ -74,7 +74,8 @@ commands =
|
|||||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore = F403,F812,F821
|
# E731 skipped as assign a lambda expression
|
||||||
|
ignore = E731,F403,F812,F821
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude = .venv*,.tox,dist,*egg,build,.git,doc,*lib/python*,.update-venv
|
exclude = .venv*,.tox,dist,*egg,build,.git,doc,*lib/python*,.update-venv
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user