def setup_module(mod): py.test.importorskip("docutils") if not py.path.local.sysfind("gs") or \ not py.path.local.sysfind("dot") or \ not py.path.local.sysfind("latex"): py.test.skip("ghostscript, graphviz and latex needed") mod.datadir = getdata()
def setup_module(mod): if not py.path.local.sysfind("gs") or \ not py.path.local.sysfind("dot") or \ not py.path.local.sysfind("latex"): py.test.skip("ghostscript, graphviz and latex needed") try: import docutils except ImportError: py.test.skip("docutils not present") mod.datadir = getdata()
def setup_module(mod): required = 'gs', 'dot', 'latex', 'epstopdf', for exe in required: if not py.path.local.sysfind(exe): py.test.skip("%r not found, required: %r" %(exe, required)) mod.datadir = getdata()
def setup_module(mod): mod.datadir = getdata() mod.testdir = py.test.ensuretemp("rest")