mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 12:06:04 +00:00
Fix skipif on fish tests
This commit is contained in:
parent
b2457d1587
commit
7770efb86c
@ -20,7 +20,7 @@ RUN pip2 install -U pip setuptools
|
||||
|
||||
@functional
|
||||
@pytest.mark.skipif(
|
||||
bare, reason='https://github.com/travis-ci/apt-source-whitelist/issues/71')
|
||||
bool(bare), reason='https://github.com/travis-ci/apt-source-whitelist/issues/71')
|
||||
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||
def test_with_confirmation(tag, dockerfile):
|
||||
with spawn(tag, dockerfile, u'fish') as proc:
|
||||
@ -31,7 +31,7 @@ def test_with_confirmation(tag, dockerfile):
|
||||
|
||||
@functional
|
||||
@pytest.mark.skipif(
|
||||
bare, reason='https://github.com/travis-ci/apt-source-whitelist/issues/71')
|
||||
bool(bare), reason='https://github.com/travis-ci/apt-source-whitelist/issues/71')
|
||||
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||
def test_refuse_with_confirmation(tag, dockerfile):
|
||||
with spawn(tag, dockerfile, u'fish') as proc:
|
||||
@ -42,7 +42,7 @@ def test_refuse_with_confirmation(tag, dockerfile):
|
||||
|
||||
@functional
|
||||
@pytest.mark.skipif(
|
||||
bare, reason='https://github.com/travis-ci/apt-source-whitelist/issues/71')
|
||||
bool(bare), reason='https://github.com/travis-ci/apt-source-whitelist/issues/71')
|
||||
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||
def test_without_confirmation(tag, dockerfile):
|
||||
with spawn(tag, dockerfile, u'fish') as proc:
|
||||
|
@ -25,7 +25,6 @@ def build_container(tag, dockerfile):
|
||||
|
||||
@contextmanager
|
||||
def spawn(tag, dockerfile, cmd):
|
||||
raise Exception([bare, enabled])
|
||||
if bare:
|
||||
proc = pexpect.spawnu(cmd)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user