Merge "Fixed unit test to not actually run backup command"

This commit is contained in:
Jenkins 2014-03-26 00:38:35 +00:00 committed by Gerrit Code Review
commit 025bad1cdf

View File

@ -369,8 +369,8 @@ class BackupAgentTest(testtools.TestCase):
'parent_checksum': 'md5',
}
when(mysql_impl.InnoBackupExIncremental).metadata().thenReturn(meta)
when(mysql_impl.InnoBackupExIncremental).check_process().thenReturn(
True)
when(mysql_impl.InnoBackupExIncremental).run().thenReturn(True)
when(mysql_impl.InnoBackupExIncremental).__exit__().thenReturn(True)
agent = backupagent.BackupAgent()