mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Fix mock loader for osx /etc symlinks (#16074)
Fix role based unit tests for osx via mock.patch
This commit is contained in:
parent
c06884eff0
commit
373b23cc24
5 changed files with 21 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue