mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Remove some test prints
This commit is contained in:
@@ -142,16 +142,12 @@ class TestPlaybook(unittest.TestCase):
|
||||
runner_callbacks = self.test_callbacks
|
||||
)
|
||||
result = self.playbook.run()
|
||||
print EVENTS
|
||||
return result
|
||||
|
||||
def test_one(self):
|
||||
pb = 'test/playbook1.yml'
|
||||
actual = self._run(pb)
|
||||
|
||||
# if different, this will output to screen
|
||||
print "**ACTUAL**"
|
||||
print utils.jsonify(actual, format=True)
|
||||
expected = {
|
||||
"localhost": {
|
||||
"changed": 9,
|
||||
@@ -161,14 +157,11 @@ class TestPlaybook(unittest.TestCase):
|
||||
"unreachable": 0
|
||||
}
|
||||
}
|
||||
print "**EXPECTED**"
|
||||
print utils.jsonify(expected, format=True)
|
||||
|
||||
assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True)
|
||||
|
||||
# make sure the template module took options from the vars section
|
||||
data = file('/tmp/ansible_test_data_template.out').read()
|
||||
print data
|
||||
assert data.find("ears") != -1, "template success"
|
||||
|
||||
# disabling until we have a nice way of using lookup plugins inside '{{' and '}}'
|
||||
|
||||
Reference in New Issue
Block a user