1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

mock_unfrackpath_noop: handle follow parameter (#26662)

This commit is contained in:
Pilou 2017-07-12 17:13:25 +02:00 committed by James Cammarata
parent 6634f94323
commit 2d7e00c670

View file

@ -1,3 +1,5 @@
def mock_unfrackpath_noop(path): from ansible.compat.tests.mock import MagicMock
''' Do not expand the path ''' from ansible.utils.path import unfrackpath
return path
mock_unfrackpath_noop = MagicMock(spec_set=unfrackpath, side_effect=lambda x, *args, **kwargs: x)