mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix mock loader for osx /etc symlinks (#16074)
Fix role based unit tests for osx via mock.patch
This commit is contained in:
@@ -29,6 +29,8 @@ from ansible.playbook.task import Task
|
||||
from ansible.playbook.play_context import PlayContext
|
||||
|
||||
from units.mock.loader import DictDataLoader
|
||||
from units.mock.path import mock_unfrackpath_noop
|
||||
|
||||
|
||||
class TestPlayIterator(unittest.TestCase):
|
||||
|
||||
@@ -55,7 +57,10 @@ class TestPlayIterator(unittest.TestCase):
|
||||
|
||||
new_hs = hs.copy()
|
||||
|
||||
|
||||
@patch('ansible.playbook.role.definition.unfrackpath', mock_unfrackpath_noop)
|
||||
def test_play_iterator(self):
|
||||
#import epdb; epdb.st()
|
||||
fake_loader = DictDataLoader({
|
||||
"test_play.yml": """
|
||||
- hosts: all
|
||||
|
||||
Reference in New Issue
Block a user