1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-21 12:42:31 +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

@@ -1,5 +1,6 @@
import pytest
from tests.functional.plots import with_confirmation, without_confirmation
from tests.functional.plots import with_confirmation, without_confirmation, \
refuse_with_confirmation
from tests.functional.utils import spawn, functional
containers = [('ubuntu-python3-bash', '''
@@ -28,6 +29,15 @@ def test_with_confirmation(tag, dockerfile):
with_confirmation(proc)
@functional
@pytest.mark.parametrize('tag, dockerfile', containers)
def test_refuse_with_confirmation(tag, dockerfile):
with spawn(tag, dockerfile) as proc:
proc.sendline('thefuck-alias >> ~/.config/fish/config.fish')
proc.sendline('fish')
refuse_with_confirmation(proc)
@functional
@pytest.mark.parametrize('tag, dockerfile', containers)
def test_without_confirmation(tag, dockerfile):