mirror of https://github.com/ansible/ansible.git
mock_unfrackpath_noop: handle follow parameter (#26662)
parent
6634f94323
commit
2d7e00c670
@ -1,3 +1,5 @@
|
||||
def mock_unfrackpath_noop(path):
|
||||
''' Do not expand the path '''
|
||||
return path
|
||||
from ansible.compat.tests.mock import MagicMock
|
||||
from ansible.utils.path import unfrackpath
|
||||
|
||||
|
||||
mock_unfrackpath_noop = MagicMock(spec_set=unfrackpath, side_effect=lambda x, *args, **kwargs: x)
|
||||
|
Loading…
Reference in New Issue