1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-21 04:32:37 +01:00

#N/A Add tests for "ctrl+c"

This commit is contained in:
nvbn
2015-07-24 23:14:58 +03:00
parent 174ada054d
commit 9ab4491b96
4 changed files with 44 additions and 3 deletions

View File

@@ -11,6 +11,19 @@ def with_confirmation(proc):
proc.expect('test')
def refuse_with_confirmation(proc):
"""Ensures that fix can be refused when confirmation enabled."""
proc.sendline('ehco test')
proc.sendline('fuck')
proc.expect('echo test')
proc.expect('enter')
proc.expect_exact('ctrl+c')
proc.send('\003')
proc.expect('Aborted')
def without_confirmation(proc):
"""Ensures that command can be fixed when confirmation disabled."""
proc.sendline('ehco test')