mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-20 20:22:41 +01:00
#N/A Add tests for "ctrl+c"
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import pytest
|
||||
from tests.functional.utils import spawn, functional
|
||||
from tests.functional.plots import with_confirmation, without_confirmation
|
||||
from tests.functional.plots import with_confirmation, without_confirmation,\
|
||||
refuse_with_confirmation
|
||||
|
||||
containers = [('ubuntu-python3-zsh', '''
|
||||
FROM ubuntu:latest
|
||||
@@ -27,6 +28,14 @@ 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('eval $(thefuck-alias)')
|
||||
refuse_with_confirmation(proc)
|
||||
|
||||
|
||||
@functional
|
||||
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||
def test_without_confirmation(tag, dockerfile):
|
||||
|
Reference in New Issue
Block a user