diff options
Diffstat (limited to 'tests/unit/mock/path.py')
-rw-r--r-- | tests/unit/mock/path.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/unit/mock/path.py b/tests/unit/mock/path.py new file mode 100644 index 0000000..aea8ba1 --- /dev/null +++ b/tests/unit/mock/path.py @@ -0,0 +1,7 @@ +from ansible_collections.vyos.vyos.tests.unit.compat.mock import MagicMock +from ansible.utils.path import unfrackpath + + +mock_unfrackpath_noop = MagicMock( + spec_set=unfrackpath, side_effect=lambda x, *args, **kwargs: x +) |