mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Update unit tests for flush_handlers fix
This commit is contained in:
@@ -117,7 +117,7 @@ class TestPlay(unittest.TestCase):
|
||||
roles=['foo'],
|
||||
), loader=fake_loader)
|
||||
|
||||
tasks = p.compile()
|
||||
blocks = p.compile()
|
||||
|
||||
def test_play_compile(self):
|
||||
p = Play.load(dict(
|
||||
@@ -127,6 +127,8 @@ class TestPlay(unittest.TestCase):
|
||||
tasks=[dict(action='shell echo "hello world"')],
|
||||
))
|
||||
|
||||
tasks = p.compile()
|
||||
self.assertEqual(len(tasks), 1)
|
||||
self.assertIsInstance(tasks[0], Block)
|
||||
blocks = p.compile()
|
||||
|
||||
# with a single block, there will still be three
|
||||
# implicit meta flush_handler blocks inserted
|
||||
self.assertEqual(len(blocks), 4)
|
||||
|
||||
Reference in New Issue
Block a user