mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-18 14:21:06 -07:00
Fix a test and a typo in an example
This commit is contained in:
parent
eefe66f1cc
commit
08b70949c7
2 changed files with 8 additions and 6 deletions
|
@ -193,8 +193,10 @@ class TestPlaybook(unittest.TestCase):
|
|||
runner_callbacks=test_callbacks
|
||||
)
|
||||
result = playbook.run()
|
||||
self.assertIn('localhost', result)
|
||||
self.assertIn('ok', result['localhost'])
|
||||
self.assertEqual(result['localhost']['ok'], 6)
|
||||
self.assertIn('failures', result['localhost'])
|
||||
self.assertEqual(result['localhost']['failures'], 0)
|
||||
assert 'localhost' in result
|
||||
assert 'ok' in result['localhost']
|
||||
assert result['localhost']['ok'] == 6
|
||||
assert 'failures' in result['localhost']
|
||||
assert result['localhost']['failures'] == 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue