mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-16 13:51:09 +00:00
mock_unfrackpath_noop: handle follow parameter (#26662)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user