Make the patronictl test provide an input for the schedule, even if it's empty.

This commit is contained in:
Oleksii Kliukin
2016-02-22 12:20:20 +01:00
parent f079a9f308
commit 26e1586288
+2
View File
@@ -118,6 +118,7 @@ y''')
# Aborting failover,as we anser NO to the confirmation
result = self.runner.invoke(ctl, ['failover', 'dummy', '--dcs', '8.8.8.8'], input='''leader
other
N''')
assert result.exit_code == 1
@@ -159,6 +160,7 @@ y''')
# No members available
result = self.runner.invoke(ctl, ['failover', 'dummy', '--dcs', '8.8.8.8'], input='''leader
other
y''')
assert result.exit_code == 1