mirror of
https://github.com/nvbn/thefuck.git
synced 2025-09-24 14:12:34 +01:00
Fix skipif on fish tests
This commit is contained in:
@@ -20,7 +20,7 @@ RUN pip2 install -U pip setuptools
|
|||||||
|
|
||||||
@functional
|
@functional
|
||||||
@pytest.mark.skipif(
|
@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)
|
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||||
def test_with_confirmation(tag, dockerfile):
|
def test_with_confirmation(tag, dockerfile):
|
||||||
with spawn(tag, dockerfile, u'fish') as proc:
|
with spawn(tag, dockerfile, u'fish') as proc:
|
||||||
@@ -31,7 +31,7 @@ def test_with_confirmation(tag, dockerfile):
|
|||||||
|
|
||||||
@functional
|
@functional
|
||||||
@pytest.mark.skipif(
|
@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)
|
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||||
def test_refuse_with_confirmation(tag, dockerfile):
|
def test_refuse_with_confirmation(tag, dockerfile):
|
||||||
with spawn(tag, dockerfile, u'fish') as proc:
|
with spawn(tag, dockerfile, u'fish') as proc:
|
||||||
@@ -42,7 +42,7 @@ def test_refuse_with_confirmation(tag, dockerfile):
|
|||||||
|
|
||||||
@functional
|
@functional
|
||||||
@pytest.mark.skipif(
|
@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)
|
@pytest.mark.parametrize('tag, dockerfile', containers)
|
||||||
def test_without_confirmation(tag, dockerfile):
|
def test_without_confirmation(tag, dockerfile):
|
||||||
with spawn(tag, dockerfile, u'fish') as proc:
|
with spawn(tag, dockerfile, u'fish') as proc:
|
||||||
|
@@ -25,7 +25,6 @@ def build_container(tag, dockerfile):
|
|||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def spawn(tag, dockerfile, cmd):
|
def spawn(tag, dockerfile, cmd):
|
||||||
raise Exception([bare, enabled])
|
|
||||||
if bare:
|
if bare:
|
||||||
proc = pexpect.spawnu(cmd)
|
proc = pexpect.spawnu(cmd)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user