mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix lookup plugin test properly
This commit is contained in:
parent
e3f7f86ac4
commit
5752d2a850
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue