Update to the latest version of hacking
Update the version of hacking to the one released for kilo, and fix issues with code formatting that cause the new hacking checks to fail. Change-Id: I4c9906df3e71f33b5a13e1f68584d445d79daceb
This commit is contained in:
parent
2ccb13a3f1
commit
29ac0fcaae
@ -1,13 +0,0 @@
|
||||
# Copyright 2013 IBM Corp.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
# not use this file except in compliance with the License. You may obtain
|
||||
# a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
@ -295,7 +295,9 @@ class VersionedObject(object):
|
||||
|
||||
@classmethod
|
||||
def obj_name(cls):
|
||||
"""Return a canonical name for this object which will be used over
|
||||
"""Return the object's name
|
||||
|
||||
Return a canonical name for this object which will be used over
|
||||
the wire for remote hydration.
|
||||
"""
|
||||
return cls.__name__
|
||||
@ -812,6 +814,7 @@ class VersionedObjectSerializer(messaging.NoOpSerializer):
|
||||
|
||||
def _process_iterable(self, context, action_fn, values):
|
||||
"""Process an iterable, taking an action on each value.
|
||||
|
||||
:param:context: Request context
|
||||
:param:action_fn: Action to take on each item in values
|
||||
:param:values: Iterable container of things to take action on
|
||||
|
@ -59,7 +59,9 @@ def _cleanse_dict(original):
|
||||
|
||||
|
||||
def wrap_exception(notifier=None, get_notifier=None):
|
||||
"""This decorator wraps a method to catch any exceptions that may
|
||||
"""Catch all exceptions in wrapped method
|
||||
|
||||
This decorator wraps a method to catch any exceptions that may
|
||||
get thrown. It also optionally sends the exception to the notification
|
||||
system.
|
||||
"""
|
||||
|
@ -347,7 +347,9 @@ class _BaseTestCase(test.TestCase):
|
||||
self.assertEqual(expected, jsonutils.dumps(obj_val))
|
||||
|
||||
def str_comparator(self, expected, obj_val):
|
||||
"""Compare an object field to a string in the db by performing
|
||||
"""Compare a field to a string value
|
||||
|
||||
Compare an object field to a string in the db by performing
|
||||
a simple coercion on the object field value.
|
||||
"""
|
||||
self.assertEqual(expected, str(obj_val))
|
||||
|
@ -1,7 +1,7 @@
|
||||
# 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
|
||||
# process, which may cause wedges in the gate later.
|
||||
hacking>=0.5.6,<0.8
|
||||
hacking>=0.10.0,<0.11
|
||||
oslotest>=1.5.1,<1.6.0 # Apache-2.0
|
||||
testtools>=0.9.36,!=1.2.0
|
||||
# These are needed for docs generation
|
||||
|
Loading…
Reference in New Issue
Block a user