ironic-lib/ironic_lib/tests
John L. Villalovos cdea1086d6 Use six.wraps() for Metrics so decorated methods can be inspected
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
2018-02-01 08:47:01 -08:00
..
__init__.py Move tests/ under ironic_lib/, use ostestr 2015-09-30 09:37:17 -07:00
base.py Add missing 'self' parameter to class methods 2018-01-24 12:17:44 -08:00
test_base.py Fix issue with double mocking of utils.execute functions 2017-12-11 07:26:42 -08:00
test_disk_partitioner.py Simplify logic in wait_for_disk_to_become_available 2018-01-17 13:56:16 -08:00
test_disk_utils.py Simplify logic in wait_for_disk_to_become_available 2018-01-17 13:56:16 -08:00
test_metrics_statsd.py Prevent tests from using utils.execute() 2017-05-17 09:21:26 -07:00
test_metrics_utils.py Adjust test with option 'backend' 2017-06-16 11:26:02 +08:00
test_metrics.py Use six.wraps() for Metrics so decorated methods can be inspected 2018-02-01 08:47:01 -08:00
test_utils.py Simplify logic in wait_for_disk_to_become_available 2018-01-17 13:56:16 -08:00