59e08fb16f
Previously it was using functools.wraps() to create the decorators.
The problem is that we can't use the
oslo_utils.reflection.get_signature() function to get the correct
signature.
Change it to use six.wraps() which will add the '__wrapped__'
attribute which will be used when calling get_signature() and return
the signature of the decorated function.
Added unit tests to show we are able to see the signature of a wrapped
function.
Closes-Bug: #1746730
Change-Id: I75428e948b64b3b6758d31678a80d158a11c6beb
(cherry picked from commit
|
||
---|---|---|
doc/source | ||
etc/rootwrap.d | ||
ironic_lib | ||
playbooks/legacy | ||
zuul.d | ||
.gitignore | ||
.gitreview | ||
.stestr.conf | ||
CONTRIBUTING.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
TESTING.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tox.ini |
README.rst
Team and repository tags
ironic_lib
Overview
A common library to be used exclusively by projects under the Ironic governance.
Running Tests
To run tests in virtualenvs (preferred):
$ sudo pip install tox
$ tox
To run tests in the current environment:
$ sudo pip install -r requirements.txt
$ nosetests