mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-19 01:00:42 +01:00
#620: Fix functional tests
This commit is contained in:
parent
1a52e98fbd
commit
d47ff8cbf2
@ -81,6 +81,5 @@ def without_confirmation(proc, TIMEOUT):
|
|||||||
|
|
||||||
|
|
||||||
def how_to_configure(proc, TIMEOUT):
|
def how_to_configure(proc, TIMEOUT):
|
||||||
proc.sendline(u'unalias fuck')
|
|
||||||
proc.sendline(u'fuck')
|
proc.sendline(u'fuck')
|
||||||
assert proc.expect([TIMEOUT, u"alias isn't configured"])
|
assert proc.expect([TIMEOUT, u"alias isn't configured"])
|
||||||
|
@ -48,4 +48,5 @@ def test_without_confirmation(proc, TIMEOUT):
|
|||||||
|
|
||||||
@pytest.mark.functional
|
@pytest.mark.functional
|
||||||
def test_how_to_configure_alias(proc, TIMEOUT):
|
def test_how_to_configure_alias(proc, TIMEOUT):
|
||||||
|
proc.sendline('unset -f fuck')
|
||||||
how_to_configure(proc, TIMEOUT)
|
how_to_configure(proc, TIMEOUT)
|
||||||
|
@ -55,4 +55,5 @@ def test_without_confirmation(proc, TIMEOUT):
|
|||||||
|
|
||||||
@pytest.mark.functional
|
@pytest.mark.functional
|
||||||
def test_how_to_configure_alias(proc, TIMEOUT):
|
def test_how_to_configure_alias(proc, TIMEOUT):
|
||||||
|
proc.sendline(u'unfunction fuck')
|
||||||
how_to_configure(proc, TIMEOUT)
|
how_to_configure(proc, TIMEOUT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user