mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-21 04:32:37 +01:00
Add BARE
option for running functional tests without docker
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
def with_confirmation(proc):
|
||||
"""Ensures that command can be fixed when confirmation enabled."""
|
||||
proc.sendline('mkdir -p ~/.thefuck')
|
||||
proc.sendline('echo "require_confirmation = True" > ~/.thefuck/settings.py')
|
||||
|
||||
proc.sendline('ehco test')
|
||||
|
||||
proc.sendline('fuck')
|
||||
@@ -13,6 +16,9 @@ def with_confirmation(proc):
|
||||
|
||||
def refuse_with_confirmation(proc):
|
||||
"""Ensures that fix can be refused when confirmation enabled."""
|
||||
proc.sendline('mkdir -p ~/.thefuck')
|
||||
proc.sendline('echo "require_confirmation = True" > ~/.thefuck/settings.py')
|
||||
|
||||
proc.sendline('ehco test')
|
||||
|
||||
proc.sendline('fuck')
|
||||
@@ -26,6 +32,9 @@ def refuse_with_confirmation(proc):
|
||||
|
||||
def without_confirmation(proc):
|
||||
"""Ensures that command can be fixed when confirmation disabled."""
|
||||
proc.sendline('mkdir -p ~/.thefuck')
|
||||
proc.sendline('echo "require_confirmation = False" > ~/.thefuck/settings.py')
|
||||
|
||||
proc.sendline('ehco test')
|
||||
|
||||
proc.sendline('fuck')
|
||||
|
Reference in New Issue
Block a user