mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Temporarily commented out docs Mock decorator conditional
This worked in the smaller salt-api project but is choking somewhere in the larger Salt project. We do need this but we need the salt-api merge sooner. Commented out for now.
This commit is contained in:
parent
1d676fe051
commit
295e0b9060
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ class Mock(object):
|
|||
def __call__(self, *args, **kwargs):
|
||||
ret = Mock()
|
||||
# If mocked function is used as a decorator, expose decorated function.
|
||||
if args and callable(args[0]):
|
||||
functools.update_wrapper(ret, args[0])
|
||||
# if args and callable(args[-1]):
|
||||
# functools.update_wrapper(ret, args[0])
|
||||
return ret
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Reference in a new issue