cdea1086d6
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 |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
test_base.py | ||
test_disk_partitioner.py | ||
test_disk_utils.py | ||
test_metrics_statsd.py | ||
test_metrics_utils.py | ||
test_metrics.py | ||
test_utils.py |