skip if swift not installed

This commit is contained in:
Ben Asher 2017-01-13 13:51:06 -08:00
parent ca731268a4
commit ac2520c86f
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,6 @@
from __future__ import unicode_literals
import distutils
import os.path
import shutil
@ -68,6 +69,11 @@ skipif_slowtests_false = pytest.mark.skipif(
reason='slowtests=false',
)
skipif_cant_run_swift = pytest.mark.skipif(
distutils.spawn.find_executable('swift') is None,
reason='swift isn\'t installed or can\'t be found'
)
xfailif_windows_no_ruby = pytest.mark.xfail(
os.name == 'nt',
reason='Ruby support not yet implemented on windows.',