mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix lookup plugin test properly
This commit is contained in:
@@ -114,6 +114,7 @@ class TestPlaybook(unittest.TestCase):
|
||||
def _run(self, test_playbook, host_list='test/ansible_hosts'):
|
||||
''' run a module and get the localhost results '''
|
||||
# This ensures tests are independent of eachother
|
||||
global EVENTS
|
||||
ansible.playbook.SETUP_CACHE.clear()
|
||||
EVENTS = []
|
||||
|
||||
@@ -202,7 +203,8 @@ class TestPlaybook(unittest.TestCase):
|
||||
|
||||
assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True)
|
||||
|
||||
assert len(EVENTS) == 60
|
||||
print "len(EVENTS) = %d" % len(EVENTS)
|
||||
assert len(EVENTS) == 26
|
||||
|
||||
def test_includes(self):
|
||||
pb = os.path.join(self.test_dir, 'playbook-includer.yml')
|
||||
|
||||
Reference in New Issue
Block a user