mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-21 20:52:32 +01:00
#N/A Add tests for fish
This commit is contained in:
20
tests/functional/plots.py
Normal file
20
tests/functional/plots.py
Normal file
@@ -0,0 +1,20 @@
|
||||
def with_confirmation(proc):
|
||||
"""Ensures that command can be fixed when confirmation enabled."""
|
||||
proc.sendline('ehco test')
|
||||
|
||||
proc.sendline('fuck')
|
||||
proc.expect('echo test')
|
||||
proc.expect('enter')
|
||||
proc.expect_exact('ctrl+c')
|
||||
proc.send('\n')
|
||||
|
||||
proc.expect('test')
|
||||
|
||||
|
||||
def without_confirmation(proc):
|
||||
"""Ensures that command can be fixed when confirmation disabled."""
|
||||
proc.sendline('ehco test')
|
||||
|
||||
proc.sendline('fuck')
|
||||
proc.expect('echo test')
|
||||
proc.expect('test')
|
Reference in New Issue
Block a user