1
0
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:
nvbn 2015-07-25 03:38:17 +03:00
parent b2457d1587
commit 7770efb86c
2 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -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: