Disable a test temporarily

pull/2515/merge
Michael DeHaan 12 years ago
parent f37da4fdd7
commit 2c783c7145

@ -164,29 +164,31 @@ class TestPlaybook(unittest.TestCase):
print data print data
assert data.find("ears") != -1, "template success" assert data.find("ears") != -1, "template success"
def test_lookups(self): # disabling until we have a nice way of using lookup plugins inside '{{' and '}}'
pb = os.path.join(self.test_dir, 'lookup_plugins.yml')
actual = self._run(pb) #def test_lookups(self):
# pb = os.path.join(self.test_dir, 'lookup_plugins.yml')
# if different, this will output to screen # actual = self._run(pb)
print "**ACTUAL**" #
print utils.jsonify(actual, format=True) # # if different, this will output to screen
expected = { # print "**ACTUAL**"
"localhost": { # print utils.jsonify(actual, format=True)
"changed": 16, # expected = {
"failures": 0, # "localhost": {
"ok": 21, # "changed": 16,
"skipped": 1, # "failures": 0,
"unreachable": 0 # "ok": 21,
} # "skipped": 1,
} # "unreachable": 0
print "**EXPECTED**" # }
print utils.jsonify(expected, format=True) # }
# print "**EXPECTED**"
assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True) # print utils.jsonify(expected, format=True)
#
print "len(EVENTS) = %d" % len(EVENTS) # assert utils.jsonify(expected, format=True) == utils.jsonify(actual,format=True)
assert len(EVENTS) == 74 #
# print "len(EVENTS) = %d" % len(EVENTS)
# assert len(EVENTS) == 74
def test_includes(self): def test_includes(self):
pb = os.path.join(self.test_dir, 'playbook-includer.yml') pb = os.path.join(self.test_dir, 'playbook-includer.yml')

Loading…
Cancel
Save