mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-21 12:42:31 +01:00
#356 Print useful information when fuck
called and alias isn't configured
This commit is contained in:
@@ -78,3 +78,9 @@ def without_confirmation(proc, TIMEOUT):
|
||||
proc.sendline(u'fuck')
|
||||
assert proc.expect([TIMEOUT, u'echo test'])
|
||||
assert proc.expect([TIMEOUT, u'test'])
|
||||
|
||||
|
||||
def how_to_configure(proc, TIMEOUT):
|
||||
proc.sendline(u'unalias fuck')
|
||||
proc.sendline(u'fuck')
|
||||
assert proc.expect([TIMEOUT, "alias isn't configured"])
|
||||
|
Reference in New Issue
Block a user