Fix synchronize unit test to handle checkmode

This commit is contained in:
James Tanner 2014-02-25 09:24:14 -05:00
parent 9209581565
commit e121ff111d

View file

@ -17,6 +17,7 @@ class FakeRunner(object):
self.sudo = None
self.remote_user = None
self.private_key_file = None
self.check = False
def _execute_module(self, conn, tmp, module_name, args, inject=None):
self.executed_conn = conn
@ -25,6 +26,9 @@ class FakeRunner(object):
self.executed_args = args
self.executed_inject = inject
def noop_on_check(self, inject):
return self.check
class FakeConn(object):
def __init__(self):
self.host = None